Main Page | Data Structures | Directories | File List | Data Fields | Globals

cert_vfy.h File Reference


Detailed Description

Several routines to:.

Definition in file cert_vfy.h.

#include <openssl/x509.h>

Go to the source code of this file.

Defines

#define CERTVFY_EXTERN   extern

Typedefs

typedef cert_policy_st cert_policy

Enumerations

enum  crl_policy_t { CRLP_NONE, CRLP_ONLINE, CRLP_OFFLINE, CRLP_AUTO }

Functions

CERTVFY_EXTERN int verify_certificate (X509 *x509, cert_policy *policy)
 Verify provided certificate, and if needed, CRL.
CERTVFY_EXTERN int verify_signature (X509 *x509, unsigned char *data, int data_length, unsigned char *signature, int signature_length)
 Verify signature of provided data.


Define Documentation

#define CERTVFY_EXTERN   extern
 

Definition at line 52 of file cert_vfy.h.


Typedef Documentation

typedef struct cert_policy_st cert_policy
 


Enumeration Type Documentation

enum crl_policy_t
 

Enumeration values:
CRLP_NONE  Do not perform any CRL verification.
CRLP_ONLINE  Retrieve CRL from CA site.
CRLP_OFFLINE  Retrieve CRL from local filesystem.
CRLP_AUTO  Try CRL check online, else ofline, else fail.

Definition at line 32 of file cert_vfy.h.


Function Documentation

CERTVFY_EXTERN int verify_certificate X509 *  x509,
cert_policy policy
 

Verify provided certificate, and if needed, CRL.

Parameters:
x509 Certificate to check
ca_dir HashDir to retrieve CA Certificates
crl_dir HashDir to retrieve CRL's
policy CRL verify policy
Returns:
1 on cert vfy sucess, 0 on fail, -1 on process error

CERTVFY_EXTERN int verify_signature X509 *  x509,
unsigned char *  data,
int  data_length,
unsigned char *  signature,
int  signature_length
 

Verify signature of provided data.

Parameters:
x509 Certificate to be used
data Byte array of data to check
data_len Lenght of provided byte array
signature Byte array of signature to check
signature_length Length of signature byte array
Returns:
1 on signature vfy sucess, 0 on vfy fail, -1 on process error


Generated on Thu Mar 16 22:52:55 2006 for pam_pkcs11 by  doxygen 1.4.2