1 .TH "hx509 revokation checking functions" 3 "11 Jan 2012" "Version 1.5.2" "Heimdalx509library" \" -*- nroff -*-
5 hx509 revokation checking functions \-
10 .RI "int \fBhx509_revoke_init\fP (hx509_context context, hx509_revoke_ctx *ctx)"
13 .RI "void \fBhx509_revoke_free\fP (hx509_revoke_ctx *ctx)"
16 .RI "int \fBhx509_revoke_add_ocsp\fP (hx509_context context, hx509_revoke_ctx ctx, const char *path)"
19 .RI "int \fBhx509_revoke_add_crl\fP (hx509_context context, hx509_revoke_ctx ctx, const char *path)"
22 .RI "int \fBhx509_revoke_verify\fP (hx509_context context, hx509_revoke_ctx ctx, hx509_certs certs, time_t now, hx509_cert cert, hx509_cert parent_cert)"
25 .RI "int \fBhx509_ocsp_request\fP (hx509_context context, hx509_certs reqcerts, hx509_certs pool, hx509_cert signer, const AlgorithmIdentifier *digest, heim_octet_string *request, heim_octet_string *nonce)"
28 .RI "int \fBhx509_revoke_ocsp_print\fP (hx509_context context, const char *path, FILE *out)"
31 .SH "Detailed Description"
33 See the \fBRevocation methods\fP for description and examples.
34 .SH "Function Documentation"
36 .SS "int hx509_ocsp_request (hx509_context context, hx509_certs reqcerts, hx509_certs pool, hx509_cert signer, const AlgorithmIdentifier * digest, heim_octet_string * request, heim_octet_string * nonce)"
38 Create an OCSP request for a set of certificates.
42 \fIcontext\fP a hx509 context
44 \fIreqcerts\fP list of certificates to request ocsp data for
46 \fIpool\fP certificate pool to use when signing
48 \fIsigner\fP certificate to use to sign the request
50 \fIdigest\fP the signing algorithm in the request, if NULL use the default signature algorithm,
52 \fIrequest\fP the encoded request, free with free_heim_octet_string().
54 \fInonce\fP nonce in the request, free with free_heim_octet_string().
59 An hx509 error code, see \fBhx509_get_error_string()\fP.
63 .SS "int hx509_revoke_add_crl (hx509_context context, hx509_revoke_ctx ctx, const char * path)"
65 Add a CRL file to the revokation context.
69 \fIcontext\fP hx509 context
71 \fIctx\fP hx509 revokation context
73 \fIpath\fP path to file that is going to be added to the context.
78 An hx509 error code, see \fBhx509_get_error_string()\fP.
82 .SS "int hx509_revoke_add_ocsp (hx509_context context, hx509_revoke_ctx ctx, const char * path)"
84 Add a OCSP file to the revokation context.
88 \fIcontext\fP hx509 context
90 \fIctx\fP hx509 revokation context
92 \fIpath\fP path to file that is going to be added to the context.
97 An hx509 error code, see \fBhx509_get_error_string()\fP.
101 .SS "void hx509_revoke_free (hx509_revoke_ctx * ctx)"
103 Free a hx509 revokation context.
107 \fIctx\fP context to be freed
111 .SS "int hx509_revoke_init (hx509_context context, hx509_revoke_ctx * ctx)"
113 Allocate a revokation context. Free with \fBhx509_revoke_free()\fP.
117 \fIcontext\fP A hx509 context.
119 \fIctx\fP returns a newly allocated revokation context.
124 An hx509 error code, see \fBhx509_get_error_string()\fP.
128 .SS "int hx509_revoke_ocsp_print (hx509_context context, const char * path, FILE * out)"
130 Print the OCSP reply stored in a file.
134 \fIcontext\fP a hx509 context
136 \fIpath\fP path to a file with a OCSP reply
138 \fIout\fP the out FILE descriptor to print the reply on
143 An hx509 error code, see \fBhx509_get_error_string()\fP.
147 .SS "int hx509_revoke_verify (hx509_context context, hx509_revoke_ctx ctx, hx509_certs certs, time_t now, hx509_cert cert, hx509_cert parent_cert)"
149 Check that a certificate is not expired according to a revokation context. Also need the parent certificte to the check OCSP parent identifier.
153 \fIcontext\fP hx509 context
155 \fIctx\fP hx509 revokation context
168 An hx509 error code, see \fBhx509_get_error_string()\fP.