forked from wolfSSL/wolfssl
Merge branch 'master' of github.com:wolfssl/wolfssl
This commit is contained in:
16
src/ssl.c
16
src/ssl.c
@ -11514,11 +11514,11 @@ int wolfSSL_BN_add(WOLFSSL_BIGNUM *r, WOLFSSL_BIGNUM *a, WOLFSSL_BIGNUM *b)
|
|||||||
int wolfSSL_BN_is_prime_ex(const WOLFSSL_BIGNUM *bn, int nbchecks,
|
int wolfSSL_BN_is_prime_ex(const WOLFSSL_BIGNUM *bn, int nbchecks,
|
||||||
WOLFSSL_BN_CTX *ctx, WOLFSSL_BN_GENCB *cb)
|
WOLFSSL_BN_CTX *ctx, WOLFSSL_BN_GENCB *cb)
|
||||||
{
|
{
|
||||||
|
int res;
|
||||||
|
|
||||||
(void)ctx;
|
(void)ctx;
|
||||||
(void)cb;
|
(void)cb;
|
||||||
|
|
||||||
int res;
|
|
||||||
|
|
||||||
WOLFSSL_MSG("wolfSSL_BN_is_prime_ex");
|
WOLFSSL_MSG("wolfSSL_BN_is_prime_ex");
|
||||||
|
|
||||||
if (bn == NULL || bn->internal == NULL) {
|
if (bn == NULL || bn->internal == NULL) {
|
||||||
@ -13150,13 +13150,13 @@ int wolfSSL_PEM_write_buf_RSAPrivateKey(RSA* rsa, const EVP_CIPHER* cipher,
|
|||||||
unsigned char* passwd, int len,
|
unsigned char* passwd, int len,
|
||||||
byte **pem, int *plen)
|
byte **pem, int *plen)
|
||||||
{
|
{
|
||||||
|
byte *der, *tmp;
|
||||||
|
int der_max_len = 0, derSz = 0;
|
||||||
|
|
||||||
(void)cipher;
|
(void)cipher;
|
||||||
(void)passwd;
|
(void)passwd;
|
||||||
(void)len;
|
(void)len;
|
||||||
|
|
||||||
byte *der, *tmp;
|
|
||||||
int der_max_len = 0, derSz = 0;
|
|
||||||
|
|
||||||
WOLFSSL_MSG("wolfSSL_PEM_write_buf_RSAPrivateKey");
|
WOLFSSL_MSG("wolfSSL_PEM_write_buf_RSAPrivateKey");
|
||||||
|
|
||||||
if (pem == NULL || plen == NULL || rsa == NULL || rsa->internal == NULL) {
|
if (pem == NULL || plen == NULL || rsa == NULL || rsa->internal == NULL) {
|
||||||
@ -13231,15 +13231,15 @@ int wolfSSL_PEM_write_RSAPrivateKey(FILE *fp, WOLFSSL_RSA *rsa,
|
|||||||
unsigned char *kstr, int klen,
|
unsigned char *kstr, int klen,
|
||||||
pem_password_cb *cb, void *u)
|
pem_password_cb *cb, void *u)
|
||||||
{
|
{
|
||||||
|
byte* pem;
|
||||||
|
int plen, ret;
|
||||||
|
|
||||||
(void)enc;
|
(void)enc;
|
||||||
(void)kstr;
|
(void)kstr;
|
||||||
(void)klen;
|
(void)klen;
|
||||||
(void)cb;
|
(void)cb;
|
||||||
(void)u;
|
(void)u;
|
||||||
|
|
||||||
byte *pem;
|
|
||||||
int plen, ret;
|
|
||||||
|
|
||||||
WOLFSSL_MSG("wolfSSL_PEM_write_RSAPrivateKey");
|
WOLFSSL_MSG("wolfSSL_PEM_write_RSAPrivateKey");
|
||||||
|
|
||||||
if (fp == NULL || rsa == NULL || rsa->internal == NULL) {
|
if (fp == NULL || rsa == NULL || rsa->internal == NULL) {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <wolfssl/openssl/bn.h>
|
#include <wolfssl/openssl/bn.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern C {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user