aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/x509/x509.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/https/x509/x509.h')
-rw-r--r--src/daemon/https/x509/x509.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/src/daemon/https/x509/x509.h b/src/daemon/https/x509/x509.h
index 1c060373..be14b784 100644
--- a/src/daemon/https/x509/x509.h
+++ b/src/daemon/https/x509/x509.h
@@ -97,10 +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_get_signature_algorithm (MHD_gnutls_x509_crt_t
101 cert);
102 int MHD_gnutls_x509_crt_get_signature (MHD_gnutls_x509_crt_t cert,
103 char *sig, size_t * sizeof_sig);
104 int MHD_gnutls_x509_crt_get_version (MHD_gnutls_x509_crt_t cert); 100 int MHD_gnutls_x509_crt_get_version (MHD_gnutls_x509_crt_t cert);
105 101
106#define GNUTLS_CRL_REASON_UNUSED 128 102#define GNUTLS_CRL_REASON_UNUSED 128
@@ -115,16 +111,8 @@ extern "C"
115 111
116 time_t MHD_gnutls_x509_crt_get_activation_time (MHD_gnutls_x509_crt_t cert); 112 time_t MHD_gnutls_x509_crt_get_activation_time (MHD_gnutls_x509_crt_t cert);
117 time_t MHD_gnutls_x509_crt_get_expiration_time (MHD_gnutls_x509_crt_t cert); 113 time_t MHD_gnutls_x509_crt_get_expiration_time (MHD_gnutls_x509_crt_t cert);
118 int MHD_gnutls_x509_crt_get_serial (MHD_gnutls_x509_crt_t cert,
119 void *result, size_t * result_size);
120
121 int MHD_gnutls_x509_crt_get_pk_algorithm (MHD_gnutls_x509_crt_t cert, 114 int MHD_gnutls_x509_crt_get_pk_algorithm (MHD_gnutls_x509_crt_t cert,
122 unsigned int *bits); 115 unsigned int *bits);
123 int MHD_gnutls_x509_crt_get_subject_alt_name (MHD_gnutls_x509_crt_t cert,
124 unsigned int seq,
125 void *ret,
126 size_t * ret_size,
127 unsigned int *critical);
128 int MHD_gnutls_x509_crt_get_ca_status (MHD_gnutls_x509_crt_t cert, 116 int MHD_gnutls_x509_crt_get_ca_status (MHD_gnutls_x509_crt_t cert,
129 unsigned int *critical); 117 unsigned int *critical);
130/* The key_usage flags are defined in gnutls.h. They are the 118/* The key_usage flags are defined in gnutls.h. They are the
@@ -213,8 +201,6 @@ extern "C"
213 format, MHD_gnutls_datum_t * out); 201 format, MHD_gnutls_datum_t * out);
214/* Access to internal Certificate fields. 202/* Access to internal Certificate fields.
215 */ 203 */
216 int MHD_gnutls_x509_crt_get_raw_issuer_dn (MHD_gnutls_x509_crt_t cert,
217 MHD_gnutls_datum_t * start);
218 int MHD_gnutls_x509_crt_get_raw_dn (MHD_gnutls_x509_crt_t cert, 204 int MHD_gnutls_x509_crt_get_raw_dn (MHD_gnutls_x509_crt_t cert,
219 MHD_gnutls_datum_t * start); 205 MHD_gnutls_datum_t * start);
220 206
@@ -227,8 +213,6 @@ extern "C"
227 unsigned long value_tag; 213 unsigned long value_tag;
228 } MHD_gnutls_x509_ava_st; 214 } MHD_gnutls_x509_ava_st;
229 215
230 int MHD_gnutls_x509_crt_get_subject (MHD_gnutls_x509_crt_t cert,
231 MHD_gnutls_x509_dn_t * dn);
232 struct MHD_gnutls_pkcs7_int; 216 struct MHD_gnutls_pkcs7_int;
233 typedef struct MHD_gnutls_pkcs7_int *MHD_gnutls_pkcs7_t; 217 typedef struct MHD_gnutls_pkcs7_int *MHD_gnutls_pkcs7_t;
234 218
@@ -325,38 +309,9 @@ extern "C"
325 309
326 int MHD_gnutls_x509_privkey_init (MHD_gnutls_x509_privkey_t * key); 310 int MHD_gnutls_x509_privkey_init (MHD_gnutls_x509_privkey_t * key);
327 void MHD_gnutls_x509_privkey_deinit (MHD_gnutls_x509_privkey_t key); 311 void MHD_gnutls_x509_privkey_deinit (MHD_gnutls_x509_privkey_t key);
328 int MHD_gnutls_x509_privkey_cpy (MHD_gnutls_x509_privkey_t dst,
329 MHD_gnutls_x509_privkey_t src);
330 int MHD_gnutls_x509_privkey_import (MHD_gnutls_x509_privkey_t key, 312 int MHD_gnutls_x509_privkey_import (MHD_gnutls_x509_privkey_t key,
331 const MHD_gnutls_datum_t * data, 313 const MHD_gnutls_datum_t * data,
332 MHD_gnutls_x509_crt_fmt_t format); 314 MHD_gnutls_x509_crt_fmt_t format);
333 int MHD_gnutls_x509_privkey_import_pkcs8 (MHD_gnutls_x509_privkey_t key,
334 const MHD_gnutls_datum_t * data,
335 MHD_gnutls_x509_crt_fmt_t format,
336 const char *pass,
337 unsigned int flags);
338 int MHD_gnutls_x509_privkey_import_rsa_raw (MHD_gnutls_x509_privkey_t key,
339 const MHD_gnutls_datum_t * m,
340 const MHD_gnutls_datum_t * e,
341 const MHD_gnutls_datum_t * d,
342 const MHD_gnutls_datum_t * p,
343 const MHD_gnutls_datum_t * q,
344 const MHD_gnutls_datum_t * u);
345 int MHD_gnutls_x509_privkey_export_dsa_raw (MHD_gnutls_x509_privkey_t key,
346 MHD_gnutls_datum_t * p,
347 MHD_gnutls_datum_t * q,
348 MHD_gnutls_datum_t * g,
349 MHD_gnutls_datum_t * y,
350 MHD_gnutls_datum_t * x);
351 int MHD_gnutls_x509_privkey_import_dsa_raw (MHD_gnutls_x509_privkey_t key,
352 const MHD_gnutls_datum_t * p,
353 const MHD_gnutls_datum_t * q,
354 const MHD_gnutls_datum_t * g,
355 const MHD_gnutls_datum_t * y,
356 const MHD_gnutls_datum_t * x);
357
358 int MHD_gnutls_x509_privkey_get_pk_algorithm (MHD_gnutls_x509_privkey_t
359 key);
360 int MHD_gnutls_x509_privkey_get_key_id (MHD_gnutls_x509_privkey_t key, 315 int MHD_gnutls_x509_privkey_get_key_id (MHD_gnutls_x509_privkey_t key,
361 unsigned int flags, 316 unsigned int flags,
362 unsigned char *output_data, 317 unsigned char *output_data,
@@ -457,27 +412,12 @@ typedef struct MHD_gtls_x509_privkey_int
457 ASN1_TYPE key; 412 ASN1_TYPE key;
458} MHD_gnutls_x509_privkey_int; 413} MHD_gnutls_x509_privkey_int;
459 414
460int MHD_gnutls_x509_crt_get_subject_alt_name (MHD_gnutls_x509_crt_t cert,
461 unsigned int seq,
462 void *ret,
463 size_t * ret_size,
464 unsigned int *critical);
465int MHD_gnutls_x509_crt_get_dn_by_oid (MHD_gnutls_x509_crt_t cert,
466 const char *oid,
467 int indx,
468 unsigned int raw_flag,
469 void *buf, size_t * sizeof_buf);
470int MHD_gnutls_x509_crt_get_ca_status (MHD_gnutls_x509_crt_t cert,
471 unsigned int *critical);
472int MHD_gnutls_x509_crt_get_pk_algorithm (MHD_gnutls_x509_crt_t cert, 415int MHD_gnutls_x509_crt_get_pk_algorithm (MHD_gnutls_x509_crt_t cert,
473 unsigned int *bits); 416 unsigned int *bits);
474 417
475int MHD_gnutls_x509_crt_get_serial (MHD_gnutls_x509_crt_t cert, 418int MHD_gnutls_x509_crt_get_serial (MHD_gnutls_x509_crt_t cert,
476 void *result, size_t * result_size); 419 void *result, size_t * result_size);
477 420
478int MHD__gnutls_x509_compare_raw_dn (const MHD_gnutls_datum_t * dn1,
479 const MHD_gnutls_datum_t * dn2);
480
481int MHD_gnutls_x509_crt_check_revocation (MHD_gnutls_x509_crt_t cert, 421int MHD_gnutls_x509_crt_check_revocation (MHD_gnutls_x509_crt_t cert,
482 const MHD_gnutls_x509_crl_t * 422 const MHD_gnutls_x509_crl_t *
483 crl_list, int crl_list_length); 423 crl_list, int crl_list_length);
@@ -494,7 +434,6 @@ int MHD_gnutls_x509_crt_export (MHD_gnutls_x509_crt_t cert,
494int MHD_gnutls_x509_crt_get_key_usage (MHD_gnutls_x509_crt_t cert, 434int MHD_gnutls_x509_crt_get_key_usage (MHD_gnutls_x509_crt_t cert,
495 unsigned int *key_usage, 435 unsigned int *key_usage,
496 unsigned int *critical); 436 unsigned int *critical);
497int MHD_gnutls_x509_crt_get_signature_algorithm (MHD_gnutls_x509_crt_t cert);
498int MHD_gnutls_x509_crt_get_version (MHD_gnutls_x509_crt_t cert); 437int MHD_gnutls_x509_crt_get_version (MHD_gnutls_x509_crt_t cert);
499 438
500int MHD_gnutls_x509_privkey_init (MHD_gnutls_x509_privkey_t * key); 439int MHD_gnutls_x509_privkey_init (MHD_gnutls_x509_privkey_t * key);
@@ -507,14 +446,6 @@ int MHD_gnutls_x509_privkey_generate (MHD_gnutls_x509_privkey_t key,
507int MHD_gnutls_x509_privkey_import (MHD_gnutls_x509_privkey_t key, 446int MHD_gnutls_x509_privkey_import (MHD_gnutls_x509_privkey_t key,
508 const MHD_gnutls_datum_t * data, 447 const MHD_gnutls_datum_t * data,
509 MHD_gnutls_x509_crt_fmt_t format); 448 MHD_gnutls_x509_crt_fmt_t format);
510int MHD_gnutls_x509_privkey_get_pk_algorithm (MHD_gnutls_x509_privkey_t key);
511int MHD_gnutls_x509_privkey_import_rsa_raw (MHD_gnutls_x509_privkey_t key,
512 const MHD_gnutls_datum_t * m,
513 const MHD_gnutls_datum_t * e,
514 const MHD_gnutls_datum_t * d,
515 const MHD_gnutls_datum_t * p,
516 const MHD_gnutls_datum_t * q,
517 const MHD_gnutls_datum_t * u);
518int MHD_gnutls_x509_privkey_export_rsa_raw (MHD_gnutls_x509_privkey_t key, 449int MHD_gnutls_x509_privkey_export_rsa_raw (MHD_gnutls_x509_privkey_t key,
519 MHD_gnutls_datum_t * m, 450 MHD_gnutls_datum_t * m,
520 MHD_gnutls_datum_t * e, 451 MHD_gnutls_datum_t * e,