add user ctx to verify callback with CyaSSL_SetCertCbCtx

This commit is contained in:
toddouska
2013-04-18 10:37:10 -07:00
parent 729fc1e603
commit d665e16bd8
4 changed files with 15 additions and 0 deletions

View File

@@ -2460,6 +2460,15 @@ void CyaSSL_set_verify(CYASSL* ssl, int mode, VerifyCallback vc)
}
/* store user ctx for verify callback */
void CyaSSL_SetCertCbCtx(CYASSL* ssl, void* ctx)
{
CYASSL_ENTER("CyaSSL_SetCertCbCtx");
if (ssl)
ssl->verifyCbCtx = ctx;
}
/* store context CA Cache addition callback */
void CyaSSL_CTX_SetCACb(CYASSL_CTX* ctx, CallbackCACache cb)
{