ssl.c rework

Move the public key APIs out of ssl.c and into pk.c.
(RSA, DSA, DH and EC)
This commit is contained in:
Sean Parkinson
2022-05-13 11:06:01 +10:00
parent 6aaee73585
commit 852d5169d4
4 changed files with 9951 additions and 9846 deletions

View File

@@ -18,6 +18,7 @@ MAINTAINERCLEANFILES+= $(FIPS_FILES)
EXTRA_DIST += src/bio.c
EXTRA_DIST += src/conf.c
EXTRA_DIST += src/pk.c
EXTRA_DIST += src/x509.c
EXTRA_DIST += src/x509_str.c

9897
src/pk.c Normal file

File diff suppressed because it is too large Load Diff

9882
src/ssl.c

File diff suppressed because it is too large Load Diff

View File

@@ -5186,6 +5186,23 @@ WOLFSSL_LOCAL int wolfSSL_ASN1_STRING_canon(WOLFSSL_ASN1_STRING* asn_out,
WOLFSSL_LOCAL int wolfssl_get_ex_new_index(int class_index);
#endif
#if !defined(WC_NO_RNG) && (defined(OPENSSL_EXTRA) || \
(defined(OPENSSL_EXTRA_X509_SMALL) && !defined(NO_RSA)))
WOLFSSL_LOCAL WC_RNG* wolfssl_get_global_rng(void);
#endif
#if !defined(WOLFCRYPT_ONLY) && defined(OPENSSL_EXTRA)
#if defined(WOLFSSL_KEY_GEN) && defined(WOLFSSL_PEM_TO_DER)
WOLFSSL_LOCAL int EncryptDerKey(byte *der, int *derSz, const EVP_CIPHER* cipher,
unsigned char* passwd, int passwdSz, byte **cipherInfo, int maxDerSz);
#endif
#endif
#if defined(WOLFSSL_KEY_GEN) && !defined(NO_RSA) && !defined(HAVE_USER_RSA)
WOLFSSL_LOCAL int wolfSSL_RSA_To_Der(WOLFSSL_RSA* rsa, byte** outBuf,
int publicKey, void* heap);
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif