The problem is caused by using any of the OpenSSL '*_fp()' functions, i.e. in 'rdkafka_ssl.c' the line p12 = d2i_PKCS12_fp(fp, NULL); This can easily be resolved by using the OpenSSL BIO functions, please check attached patch: ...
示例1: ASN1_item_d2i_fp ▲点赞 6▼ PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12){returnASN1_item_d2i_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); } 开发者ID:mz02005,项目名称:CScript,代码行数:4,代码来源:p12_utl.c 示例2: ASN1_item_d2i_fp ▲点赞 5▼ X509_REQ *d2i_X509_REQ...
@@ -50,13 +50,16 @@ i2d_PrivateKey_fp =head1 DESCRIPTION d2i_PrivateKey_ex() decodes a private key using algorithm I<type>. It attempts to use any key specific format or PKCS#8 unencrypted PrivateKeyInfo format. The I<type> parameter should be a public key algorithm constant such...
staticinteckey_priv_decode(EVP_PKEY *pkey,constPKCS8_PRIV_KEY_INFO *p8){constunsignedchar*p =NULL;constvoid*pval;intptype, pklen; EC_KEY *eckey =NULL;constX509_ALGOR *palg;if(!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8))return0; X509_ALGOR_get0(NULL, &ptype, &pval, pal...