mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-07 04:02:18 +03:00
bind option uses sockaddr - [ ! MHD_USE_IPv6 should be removed in favor of a generic addrlen argument ]
openpgp support currently disabled
This commit is contained in:
1 parent
63f23d2131
commit
c5ad835c7c
26 files changed
+544
-1836
No files matched your search
@@ -210,7 +210,7 @@ _gnutls_x509_crt_get_mpis (gnutls_x509_crt_t cert,
|
||||
{
|
||||
int result;
|
||||
int pk_algorithm;
|
||||
gnutls_datum tmp = { NULL, 0 };
|
||||
gnutls_datum_t tmp = { NULL, 0 };
|
||||
|
||||
/* Read the algorithm's OID
|
||||
*/
|
||||
|
||||
@@ -130,7 +130,7 @@ check_schema (const char *oid)
|
||||
* an ASN.1 INTEGER of the x value.
|
||||
*/
|
||||
inline static int
|
||||
_encode_privkey (gnutls_x509_privkey pkey, gnutls_datum * raw)
|
||||
_encode_privkey (gnutls_x509_privkey_t pkey, gnutls_datum_t * raw)
|
||||
{
|
||||
size_t size = 0;
|
||||
opaque *data = NULL;
|
||||
@@ -193,8 +193,8 @@ encode_to_private_key_info (gnutls_x509_privkey_t pkey,
|
||||
int result, len;
|
||||
opaque null = 0;
|
||||
const char *oid;
|
||||
gnutls_datum algo_params = { NULL, 0 };
|
||||
gnutls_datum algo_privkey = { NULL, 0 };
|
||||
gnutls_datum_t algo_params = { NULL, 0 };
|
||||
gnutls_datum_t algo_privkey = { NULL, 0 };
|
||||
|
||||
if (pkey->pk_algorithm == MHD_GNUTLS_PK_RSA)
|
||||
{
|
||||
@@ -810,10 +810,10 @@ error:
|
||||
/* Decodes an RSA privateKey from a PKCS8 structure.
|
||||
*/
|
||||
static int
|
||||
_decode_pkcs8_rsa_key (ASN1_TYPE pkcs8_asn, gnutls_x509_privkey pkey)
|
||||
_decode_pkcs8_rsa_key (ASN1_TYPE pkcs8_asn, gnutls_x509_privkey_t pkey)
|
||||
{
|
||||
int ret;
|
||||
gnutls_datum tmp;
|
||||
gnutls_datum_t tmp;
|
||||
|
||||
ret = _gnutls_x509_read_value (pkcs8_asn, "privateKey", &tmp, 0);
|
||||
if (ret < 0)
|
||||
|
||||
Reference in new issue
Block a user