diff options
Diffstat (limited to 'src/daemon/https/x509/x509.h')
-rw-r--r-- | src/daemon/https/x509/x509.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/src/daemon/https/x509/x509.h b/src/daemon/https/x509/x509.h index 624c7cb6..f48a7d69 100644 --- a/src/daemon/https/x509/x509.h +++ b/src/daemon/https/x509/x509.h | |||
@@ -97,9 +97,6 @@ extern "C" | |||
97 | MHD_gnutls_x509_crt_fmt_t format, | 97 | MHD_gnutls_x509_crt_fmt_t format, |
98 | void *output_data, | 98 | void *output_data, |
99 | size_t * output_data_size); | 99 | size_t * output_data_size); |
100 | int MHD_gnutls_x509_crt_check_hostname (MHD_gnutls_x509_crt_t cert, | ||
101 | const char *hostname); | ||
102 | |||
103 | int MHD_gnutls_x509_crt_get_signature_algorithm (MHD_gnutls_x509_crt_t | 100 | int MHD_gnutls_x509_crt_get_signature_algorithm (MHD_gnutls_x509_crt_t |
104 | cert); | 101 | cert); |
105 | int MHD_gnutls_x509_crt_get_signature (MHD_gnutls_x509_crt_t cert, | 102 | int MHD_gnutls_x509_crt_get_signature (MHD_gnutls_x509_crt_t cert, |
@@ -214,10 +211,6 @@ extern "C" | |||
214 | int MHD_gnutls_x509_crt_print (MHD_gnutls_x509_crt_t cert, | 211 | int MHD_gnutls_x509_crt_print (MHD_gnutls_x509_crt_t cert, |
215 | MHD_gnutls_certificate_print_formats_t | 212 | MHD_gnutls_certificate_print_formats_t |
216 | format, MHD_gnutls_datum_t * out); | 213 | format, MHD_gnutls_datum_t * out); |
217 | int MHD_gnutls_x509_crl_print (MHD_gnutls_x509_crl_t crl, | ||
218 | MHD_gnutls_certificate_print_formats_t | ||
219 | format, MHD_gnutls_datum_t * out); | ||
220 | |||
221 | /* Access to internal Certificate fields. | 214 | /* Access to internal Certificate fields. |
222 | */ | 215 | */ |
223 | int MHD_gnutls_x509_crt_get_raw_issuer_dn (MHD_gnutls_x509_crt_t cert, | 216 | int MHD_gnutls_x509_crt_get_raw_issuer_dn (MHD_gnutls_x509_crt_t cert, |
@@ -236,51 +229,6 @@ extern "C" | |||
236 | 229 | ||
237 | int MHD_gnutls_x509_crt_get_subject (MHD_gnutls_x509_crt_t cert, | 230 | int MHD_gnutls_x509_crt_get_subject (MHD_gnutls_x509_crt_t cert, |
238 | MHD_gnutls_x509_dn_t * dn); | 231 | MHD_gnutls_x509_dn_t * dn); |
239 | /* CRL handling functions. | ||
240 | */ | ||
241 | int MHD_gnutls_x509_crl_init (MHD_gnutls_x509_crl_t * crl); | ||
242 | void MHD_gnutls_x509_crl_deinit (MHD_gnutls_x509_crl_t crl); | ||
243 | |||
244 | int MHD_gnutls_x509_crl_get_signature_algorithm (MHD_gnutls_x509_crl_t crl); | ||
245 | int MHD_gnutls_x509_crl_get_signature (MHD_gnutls_x509_crl_t crl, | ||
246 | char *sig, size_t * sizeof_sig); | ||
247 | int MHD_gnutls_x509_crl_get_crt_count (MHD_gnutls_x509_crl_t crl); | ||
248 | int MHD_gnutls_x509_crl_get_crt_serial (MHD_gnutls_x509_crl_t crl, | ||
249 | int indx, | ||
250 | unsigned char *serial, | ||
251 | size_t * serial_size, time_t * t); | ||
252 | #define MHD_gnutls_x509_crl_get_certificate_count MHD_gnutls_x509_crl_get_crt_count | ||
253 | #define MHD_gnutls_x509_crl_get_certificate MHD_gnutls_x509_crl_get_crt_serial | ||
254 | |||
255 | int MHD_gnutls_x509_crl_check_issuer (MHD_gnutls_x509_crl_t crl, | ||
256 | MHD_gnutls_x509_crt_t issuer); | ||
257 | |||
258 | /* CRL writing. | ||
259 | */ | ||
260 | int MHD_gnutls_x509_crl_set_version (MHD_gnutls_x509_crl_t crl, | ||
261 | unsigned int version); | ||
262 | int MHD_gnutls_x509_crl_sign (MHD_gnutls_x509_crl_t crl, | ||
263 | MHD_gnutls_x509_crt_t issuer, | ||
264 | MHD_gnutls_x509_privkey_t issuer_key); | ||
265 | int MHD_gnutls_x509_crl_sign2 (MHD_gnutls_x509_crl_t crl, | ||
266 | MHD_gnutls_x509_crt_t issuer, | ||
267 | MHD_gnutls_x509_privkey_t issuer_key, | ||
268 | enum MHD_GNUTLS_HashAlgorithm, | ||
269 | unsigned int flags); | ||
270 | int MHD_gnutls_x509_crl_set_this_update (MHD_gnutls_x509_crl_t crl, | ||
271 | time_t act_time); | ||
272 | int MHD_gnutls_x509_crl_set_next_update (MHD_gnutls_x509_crl_t crl, | ||
273 | time_t exp_time); | ||
274 | int MHD_gnutls_x509_crl_set_crt_serial (MHD_gnutls_x509_crl_t crl, | ||
275 | const void *serial, | ||
276 | size_t serial_size, | ||
277 | time_t revocation_time); | ||
278 | int MHD_gnutls_x509_crl_set_crt (MHD_gnutls_x509_crl_t crl, | ||
279 | MHD_gnutls_x509_crt_t crt, | ||
280 | time_t revocation_time); | ||
281 | |||
282 | /* PKCS7 structures handling | ||
283 | */ | ||
284 | struct MHD_gnutls_pkcs7_int; | 232 | struct MHD_gnutls_pkcs7_int; |
285 | typedef struct MHD_gnutls_pkcs7_int *MHD_gnutls_pkcs7_t; | 233 | typedef struct MHD_gnutls_pkcs7_int *MHD_gnutls_pkcs7_t; |
286 | 234 | ||
@@ -352,9 +300,6 @@ extern "C" | |||
352 | GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5 = 32 | 300 | GNUTLS_VERIFY_ALLOW_SIGN_RSA_MD5 = 32 |
353 | } MHD_gnutls_certificate_verify_flags; | 301 | } MHD_gnutls_certificate_verify_flags; |
354 | 302 | ||
355 | int MHD_gnutls_x509_crt_check_issuer (MHD_gnutls_x509_crt_t cert, | ||
356 | MHD_gnutls_x509_crt_t issuer); | ||
357 | |||
358 | int MHD_gnutls_x509_crt_list_verify (const MHD_gnutls_x509_crt_t * | 303 | int MHD_gnutls_x509_crt_list_verify (const MHD_gnutls_x509_crt_t * |
359 | cert_list, int cert_list_length, | 304 | cert_list, int cert_list_length, |
360 | const MHD_gnutls_x509_crt_t * CA_list, | 305 | const MHD_gnutls_x509_crt_t * CA_list, |
@@ -364,15 +309,6 @@ extern "C" | |||
364 | unsigned int flags, | 309 | unsigned int flags, |
365 | unsigned int *verify); | 310 | unsigned int *verify); |
366 | 311 | ||
367 | int MHD_gnutls_x509_crt_verify (MHD_gnutls_x509_crt_t cert, | ||
368 | const MHD_gnutls_x509_crt_t * CA_list, | ||
369 | int CA_list_length, | ||
370 | unsigned int flags, unsigned int *verify); | ||
371 | int MHD_gnutls_x509_crl_verify (MHD_gnutls_x509_crl_t crl, | ||
372 | const MHD_gnutls_x509_crt_t * CA_list, | ||
373 | int CA_list_length, | ||
374 | unsigned int flags, unsigned int *verify); | ||
375 | |||
376 | int MHD_gnutls_x509_crt_check_revocation (MHD_gnutls_x509_crt_t cert, | 312 | int MHD_gnutls_x509_crt_check_revocation (MHD_gnutls_x509_crt_t cert, |
377 | const MHD_gnutls_x509_crl_t * | 313 | const MHD_gnutls_x509_crl_t * |
378 | crl_list, int crl_list_length); | 314 | crl_list, int crl_list_length); |
@@ -555,20 +491,6 @@ int MHD_gnutls_x509_crt_check_revocation (MHD_gnutls_x509_crt_t cert, | |||
555 | const MHD_gnutls_x509_crl_t * | 491 | const MHD_gnutls_x509_crl_t * |
556 | crl_list, int crl_list_length); | 492 | crl_list, int crl_list_length); |
557 | 493 | ||
558 | int MHD__gnutls_x509_crl_get_raw_issuer_dn (MHD_gnutls_x509_crl_t crl, | ||
559 | MHD_gnutls_datum_t * dn); | ||
560 | int MHD_gnutls_x509_crl_get_crt_count (MHD_gnutls_x509_crl_t crl); | ||
561 | int MHD_gnutls_x509_crl_get_crt_serial (MHD_gnutls_x509_crl_t crl, | ||
562 | int indx, | ||
563 | unsigned char *serial, | ||
564 | size_t * serial_size, time_t * t); | ||
565 | |||
566 | void MHD_gnutls_x509_crl_deinit (MHD_gnutls_x509_crl_t crl); | ||
567 | int MHD_gnutls_x509_crl_init (MHD_gnutls_x509_crl_t * crl); | ||
568 | int MHD_gnutls_x509_crl_import (MHD_gnutls_x509_crl_t crl, | ||
569 | const MHD_gnutls_datum_t * data, | ||
570 | MHD_gnutls_x509_crt_fmt_t format); | ||
571 | |||
572 | int MHD_gnutls_x509_crt_init (MHD_gnutls_x509_crt_t * cert); | 494 | int MHD_gnutls_x509_crt_init (MHD_gnutls_x509_crt_t * cert); |
573 | void MHD_gnutls_x509_crt_deinit (MHD_gnutls_x509_crt_t cert); | 495 | void MHD_gnutls_x509_crt_deinit (MHD_gnutls_x509_crt_t cert); |
574 | int MHD_gnutls_x509_crt_import (MHD_gnutls_x509_crt_t cert, | 496 | int MHD_gnutls_x509_crt_import (MHD_gnutls_x509_crt_t cert, |