clamav/libclamav/crtmgr.h

27 lines
456 B
C
Raw Normal View History

2011-12-21 19:52:34 +01:00
#ifndef __CRTMGR_H
#define __CRTMGR_H
#include <time.h>
#include "bignum.h"
#include "sha1.h"
typedef enum { CLI_SHA1RSA, CLI_MD5RSA } cli_crt_hashtype;
typedef struct {
uint8_t subject[SHA1_HASH_SIZE];
uint8_t issuer[SHA1_HASH_SIZE];
mp_int n;
mp_int e;
mp_int sig;
time_t not_before;
time_t not_after;
cli_crt_hashtype hashtype;
} cli_crt;
int cli_crt_init(cli_crt *x509);
void cli_crt_clear(cli_crt *x509);
#endif