diff options
author | lv-426 <oxcafebaby@yahoo.com> | 2008-08-14 16:13:04 +0000 |
---|---|---|
committer | lv-426 <oxcafebaby@yahoo.com> | 2008-08-14 16:13:04 +0000 |
commit | c5ad835c7cf6c02bc5445f8b3ed47925bded90f7 (patch) | |
tree | 1a1c1ba0a3ecbf32ecc38c6abb4da61a80f61316 /src/daemon/https/x509 | |
parent | 63f23d21318034a669b1f40954041d3c1bda8ede (diff) | |
download | libmicrohttpd-c5ad835c7cf6c02bc5445f8b3ed47925bded90f7.tar.gz libmicrohttpd-c5ad835c7cf6c02bc5445f8b3ed47925bded90f7.zip |
bind option uses sockaddr - [ ! MHD_USE_IPv6 should be removed in favor of a generic addrlen argument ]
openpgp support currently disabled
Diffstat (limited to 'src/daemon/https/x509')
-rw-r--r-- | src/daemon/https/x509/mpi.c | 2 | ||||
-rw-r--r-- | src/daemon/https/x509/privkey_pkcs8.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/daemon/https/x509/mpi.c b/src/daemon/https/x509/mpi.c index 25a9443d..da19c76e 100644 --- a/src/daemon/https/x509/mpi.c +++ b/src/daemon/https/x509/mpi.c | |||
@@ -210,7 +210,7 @@ _gnutls_x509_crt_get_mpis (gnutls_x509_crt_t cert, | |||
210 | { | 210 | { |
211 | int result; | 211 | int result; |
212 | int pk_algorithm; | 212 | int pk_algorithm; |
213 | gnutls_datum tmp = { NULL, 0 }; | 213 | gnutls_datum_t tmp = { NULL, 0 }; |
214 | 214 | ||
215 | /* Read the algorithm's OID | 215 | /* Read the algorithm's OID |
216 | */ | 216 | */ |
diff --git a/src/daemon/https/x509/privkey_pkcs8.c b/src/daemon/https/x509/privkey_pkcs8.c index 4812c29f..587fe7db 100644 --- a/src/daemon/https/x509/privkey_pkcs8.c +++ b/src/daemon/https/x509/privkey_pkcs8.c | |||
@@ -130,7 +130,7 @@ check_schema (const char *oid) | |||
130 | * an ASN.1 INTEGER of the x value. | 130 | * an ASN.1 INTEGER of the x value. |
131 | */ | 131 | */ |
132 | inline static int | 132 | inline static int |
133 | _encode_privkey (gnutls_x509_privkey pkey, gnutls_datum * raw) | 133 | _encode_privkey (gnutls_x509_privkey_t pkey, gnutls_datum_t * raw) |
134 | { | 134 | { |
135 | size_t size = 0; | 135 | size_t size = 0; |
136 | opaque *data = NULL; | 136 | opaque *data = NULL; |
@@ -193,8 +193,8 @@ encode_to_private_key_info (gnutls_x509_privkey_t pkey, | |||
193 | int result, len; | 193 | int result, len; |
194 | opaque null = 0; | 194 | opaque null = 0; |
195 | const char *oid; | 195 | const char *oid; |
196 | gnutls_datum algo_params = { NULL, 0 }; | 196 | gnutls_datum_t algo_params = { NULL, 0 }; |
197 | gnutls_datum algo_privkey = { NULL, 0 }; | 197 | gnutls_datum_t algo_privkey = { NULL, 0 }; |
198 | 198 | ||
199 | if (pkey->pk_algorithm == MHD_GNUTLS_PK_RSA) | 199 | if (pkey->pk_algorithm == MHD_GNUTLS_PK_RSA) |
200 | { | 200 | { |
@@ -810,10 +810,10 @@ error: | |||
810 | /* Decodes an RSA privateKey from a PKCS8 structure. | 810 | /* Decodes an RSA privateKey from a PKCS8 structure. |
811 | */ | 811 | */ |
812 | static int | 812 | static int |
813 | _decode_pkcs8_rsa_key (ASN1_TYPE pkcs8_asn, gnutls_x509_privkey pkey) | 813 | _decode_pkcs8_rsa_key (ASN1_TYPE pkcs8_asn, gnutls_x509_privkey_t pkey) |
814 | { | 814 | { |
815 | int ret; | 815 | int ret; |
816 | gnutls_datum tmp; | 816 | gnutls_datum_t tmp; |
817 | 817 | ||
818 | ret = _gnutls_x509_read_value (pkcs8_asn, "privateKey", &tmp, 0); | 818 | ret = _gnutls_x509_read_value (pkcs8_asn, "privateKey", &tmp, 0); |
819 | if (ret < 0) | 819 | if (ret < 0) |