@@ -9825,7 +9825,8 @@ int wolfSSL_CertManagerDisableCRL(WOLFSSL_CERT_MANAGER*);
98259825/*!
98269826 \ingroup CertManager
98279827 \brief Error checks and passes through to LoadCRL() in order to load the
9828- cert into the CRL for revocation checking.
9828+ cert into the CRL for revocation checking. An updated CRL can be loaded by
9829+ first calling wolfSSL_CertManagerFreeCRL, then loading the new CRL.
98299830
98309831 \return SSL_SUCCESS if there is no error in wolfSSL_CertManagerLoadCRL and
98319832 if LoadCRL returns successfully.
@@ -9853,6 +9854,7 @@ int wolfSSL_CertManagerDisableCRL(WOLFSSL_CERT_MANAGER*);
98539854
98549855 \sa wolfSSL_CertManagerEnableCRL
98559856 \sa wolfSSL_LoadCRL
9857+ \sa wolfSSL_CertManagerFreeCRL
98569858*/
98579859int wolfSSL_CertManagerLoadCRL (WOLFSSL_CERT_MANAGER * cm ,
98589860 const char * path , int type , int monitor );
@@ -9935,6 +9937,36 @@ int wolfSSL_CertManagerLoadCRLBuffer(WOLFSSL_CERT_MANAGER* cm,
99359937int wolfSSL_CertManagerSetCRL_Cb (WOLFSSL_CERT_MANAGER * cm ,
99369938 CbMissingCRL cb );
99379939
9940+ /*!
9941+ \ingroup CertManager
9942+ \brief This function frees the CRL stored in the Cert Manager. An
9943+ application can update the CRL by calling wolfSSL_CertManagerFreeCRL
9944+ and then loading the new CRL.
9945+
9946+ \return SSL_SUCCESS returned upon successful execution of the function and
9947+ subroutines.
9948+ \return BAD_FUNC_ARG returned if the WOLFSSL_CERT_MANAGER structure is NULL.
9949+
9950+ \param cm a pointer to a WOLFSSL_CERT_MANAGER structure, created using
9951+ wolfSSL_CertManagerNew().
9952+
9953+ _Example_
9954+ \code
9955+ #include <wolfssl/ssl.h>
9956+
9957+ const char* crl1 = "./certs/crl/crl.pem";
9958+ WOLFSSL_CERT_MANAGER* cm = NULL;
9959+
9960+ cm = wolfSSL_CertManagerNew();
9961+ wolfSSL_CertManagerLoadCRL(cm, crl1, WOLFSSL_FILETYPE_PEM, 0);
9962+ …
9963+ wolfSSL_CertManagerFreeCRL(cm);
9964+ \endcode
9965+
9966+ \sa wolfSSL_CertManagerLoadCRL
9967+ */
9968+ int wolfSSL_CertManagerFreeCRL (WOLFSSL_CERT_MANAGER * cm );
9969+
99389970/*!
99399971 \ingroup CertManager
99409972 \brief The function enables the WOLFSSL_CERT_MANAGER’s member, ocspEnabled
0 commit comments