Adding compatibility API phase 2

This commit is contained in:
Eric Blankenhorn
2019-08-15 11:04:00 -05:00
parent 256ac4a515
commit 0c9ba1b361
11 changed files with 1992 additions and 47 deletions

View File

@@ -11363,6 +11363,33 @@ WOLFSSL_API long wolfSSL_BIO_get_fp(WOLFSSL_BIO *bio, XFILE* fp);
*/
WOLFSSL_API int wolfSSL_check_private_key(const WOLFSSL* ssl);
/*!
\ingroup CertsKeys
\brief This function looks for and returns the extension index
matching the passed in NID value.
\return >= 0 If successful the extension index is returned.
\return -1 If extension is not found or error is encountered.
\param x509 certificate to get parse through for extension.
\param nid extension OID to be found.
\param lastPos start search from extension after lastPos.
Set to -1 initially.
_Example_
\code
const WOLFSSL_X509* x509;
int lastPos = -1;
int idx;
idx = wolfSSL_X509_get_ext_by_NID(x509, NID_basic_constraints, lastPos);
\endcode
*/
WOLFSSL_API int wolfSSL_X509_get_ext_by_NID(const WOLFSSL_X509* x509,
int nid, int lastPos);
/*!
\ingroup CertsKeys