forked from wolfSSL/wolfssl
* Added support for disabling PEM to DER functionality using WOLFSSL_PEM_TO_DER
. This allows way to use with DER (ASN.1) certificates only in an embedded environment. This option builds, but internal make check requires PEM support for tests.
* More cleanup to move PEM functions from ssl.c to asn.c (`wolfSSL_CertPemToDer`, `wolfSSL_KeyPemToDer`, `wolfSSL_PubKeyPemToDer`). Renamed these API's to `wc_` and added backwards compatability macro for old function names.
This commit is contained in:
@@ -38,10 +38,8 @@
|
||||
|
||||
#include <wolfssl/wolfcrypt/asn.h>
|
||||
|
||||
#ifndef WOLFSSL_PEMCERT_TODER_DEFINED
|
||||
#ifndef NO_FILESYSTEM
|
||||
#define CyaSSL_PemCertToDer wolfSSL_PemCertToDer
|
||||
#endif
|
||||
#define CyaSSL_PemCertToDer wc_PemCertToDer
|
||||
#endif
|
||||
|
||||
#endif /* CTAO_CRYPT_ASN_H */
|
||||
|
@@ -657,7 +657,6 @@
|
||||
|
||||
|
||||
/* OpenSSL Compatibility Layer */
|
||||
#define CyaSSL_PemCertToDer wolfSSL_PemCertToDer
|
||||
#define CyaSSL_get_sessionID wolfSSL_get_sessionID
|
||||
#define CyaSSL_get_peer_count wolfSSL_get_peer_count
|
||||
#define CyaSSL_get_chain_cert wolfSSL_get_chain_cert
|
||||
|
Reference in New Issue
Block a user