diff options
Diffstat (limited to 'src/daemon/https/x509/common.h')
-rw-r--r-- | src/daemon/https/x509/common.h | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/src/daemon/https/x509/common.h b/src/daemon/https/x509/common.h index 0102c5a7..7ddb4b08 100644 --- a/src/daemon/https/x509/common.h +++ b/src/daemon/https/x509/common.h | |||
@@ -59,13 +59,14 @@ | |||
59 | #define SIG_GOST_R3410_2001_OID "1.2.643.2.2.3" | 59 | #define SIG_GOST_R3410_2001_OID "1.2.643.2.2.3" |
60 | 60 | ||
61 | int MHD__gnutls_x509_decode_octet_string (const char *string_type, | 61 | int MHD__gnutls_x509_decode_octet_string (const char *string_type, |
62 | const opaque * der, size_t der_size, | 62 | const opaque * der, size_t der_size, |
63 | opaque * output, size_t * output_size); | 63 | opaque * output, |
64 | size_t * output_size); | ||
64 | int MHD__gnutls_x509_oid_data2string (const char *OID, void *value, | 65 | int MHD__gnutls_x509_oid_data2string (const char *OID, void *value, |
65 | int value_size, char *res, | 66 | int value_size, char *res, |
66 | size_t * res_size); | 67 | size_t * res_size); |
67 | int MHD__gnutls_x509_data2hex (const opaque * data, size_t data_size, | 68 | int MHD__gnutls_x509_data2hex (const opaque * data, size_t data_size, |
68 | opaque * out, size_t * sizeof_out); | 69 | opaque * out, size_t * sizeof_out); |
69 | 70 | ||
70 | const char *MHD__gnutls_x509_oid2ldap_string (const char *OID); | 71 | const char *MHD__gnutls_x509_oid2ldap_string (const char *OID); |
71 | 72 | ||
@@ -74,50 +75,51 @@ int MHD__gnutls_x509_oid_data_printable (const char *OID); | |||
74 | 75 | ||
75 | time_t MHD__gnutls_x509_get_time (ASN1_TYPE c2, const char *when); | 76 | time_t MHD__gnutls_x509_get_time (ASN1_TYPE c2, const char *when); |
76 | 77 | ||
77 | MHD_gnutls_x509_subject_alt_name_t MHD__gnutls_x509_san_find_type (char *str_type); | 78 | MHD_gnutls_x509_subject_alt_name_t MHD__gnutls_x509_san_find_type (char |
79 | *str_type); | ||
78 | 80 | ||
79 | int MHD__gnutls_x509_der_encode_and_copy (ASN1_TYPE src, const char *src_name, | 81 | int MHD__gnutls_x509_der_encode_and_copy (ASN1_TYPE src, const char *src_name, |
80 | ASN1_TYPE dest, const char *dest_name, | 82 | ASN1_TYPE dest, |
81 | int str); | 83 | const char *dest_name, int str); |
82 | int MHD__gnutls_x509_der_encode (ASN1_TYPE src, const char *src_name, | 84 | int MHD__gnutls_x509_der_encode (ASN1_TYPE src, const char *src_name, |
83 | MHD_gnutls_datum_t * res, int str); | 85 | MHD_gnutls_datum_t * res, int str); |
84 | 86 | ||
85 | int MHD__gnutls_x509_export_int (ASN1_TYPE MHD__asn1_data, | 87 | int MHD__gnutls_x509_export_int (ASN1_TYPE MHD__asn1_data, |
86 | MHD_gnutls_x509_crt_fmt_t format, char *pem_header, | 88 | MHD_gnutls_x509_crt_fmt_t format, |
87 | unsigned char *output_data, | 89 | char *pem_header, unsigned char *output_data, |
88 | size_t * output_data_size); | 90 | size_t * output_data_size); |
89 | 91 | ||
90 | int MHD__gnutls_x509_read_value (ASN1_TYPE c, const char *root, | 92 | int MHD__gnutls_x509_read_value (ASN1_TYPE c, const char *root, |
91 | MHD_gnutls_datum_t * ret, int str); | 93 | MHD_gnutls_datum_t * ret, int str); |
92 | int MHD__gnutls_x509_write_value (ASN1_TYPE c, const char *root, | 94 | int MHD__gnutls_x509_write_value (ASN1_TYPE c, const char *root, |
93 | const MHD_gnutls_datum_t * data, int str); | 95 | const MHD_gnutls_datum_t * data, int str); |
94 | 96 | ||
95 | int MHD__gnutls_x509_encode_and_write_attribute (const char *given_oid, | 97 | int MHD__gnutls_x509_encode_and_write_attribute (const char *given_oid, |
96 | ASN1_TYPE MHD__asn1_struct, | 98 | ASN1_TYPE MHD__asn1_struct, |
97 | const char *where, | 99 | const char *where, |
98 | const void *data, | 100 | const void *data, |
99 | int sizeof_data, int multi); | 101 | int sizeof_data, int multi); |
100 | int MHD__gnutls_x509_decode_and_read_attribute (ASN1_TYPE MHD__asn1_struct, | 102 | int MHD__gnutls_x509_decode_and_read_attribute (ASN1_TYPE MHD__asn1_struct, |
101 | const char *where, char *oid, | 103 | const char *where, char *oid, |
102 | int oid_size, | 104 | int oid_size, |
103 | MHD_gnutls_datum_t * value, int multi, | 105 | MHD_gnutls_datum_t * value, |
104 | int octet); | 106 | int multi, int octet); |
105 | 107 | ||
106 | int MHD__gnutls_x509_get_pk_algorithm (ASN1_TYPE src, const char *src_name, | 108 | int MHD__gnutls_x509_get_pk_algorithm (ASN1_TYPE src, const char *src_name, |
107 | unsigned int *bits); | 109 | unsigned int *bits); |
108 | 110 | ||
109 | int MHD__gnutls_x509_encode_and_copy_PKI_params (ASN1_TYPE dst, | 111 | int MHD__gnutls_x509_encode_and_copy_PKI_params (ASN1_TYPE dst, |
110 | const char *dst_name, | 112 | const char *dst_name, |
111 | enum | 113 | enum |
112 | MHD_GNUTLS_PublicKeyAlgorithm | 114 | MHD_GNUTLS_PublicKeyAlgorithm |
113 | pk_algorithm, mpi_t * params, | 115 | pk_algorithm, mpi_t * params, |
114 | int params_size); | 116 | int params_size); |
115 | int MHD__gnutls_asn1_copy_node (ASN1_TYPE * dst, const char *dst_name, | 117 | int MHD__gnutls_asn1_copy_node (ASN1_TYPE * dst, const char *dst_name, |
116 | ASN1_TYPE src, const char *src_name); | 118 | ASN1_TYPE src, const char *src_name); |
117 | 119 | ||
118 | int MHD__gnutls_x509_get_signed_data (ASN1_TYPE src, const char *src_name, | 120 | int MHD__gnutls_x509_get_signed_data (ASN1_TYPE src, const char *src_name, |
119 | MHD_gnutls_datum_t * signed_data); | 121 | MHD_gnutls_datum_t * signed_data); |
120 | int MHD__gnutls_x509_get_signature (ASN1_TYPE src, const char *src_name, | 122 | int MHD__gnutls_x509_get_signature (ASN1_TYPE src, const char *src_name, |
121 | MHD_gnutls_datum_t * signature); | 123 | MHD_gnutls_datum_t * signature); |
122 | 124 | ||
123 | #endif | 125 | #endif |