forked from wolfSSL/wolfssl
Merge pull request #922 from SparkiDev/tls_pss
TLS v1.2 and v1.3 RSA PSS
This commit is contained in:
47
src/ssl.c
47
src/ssl.c
@@ -22066,6 +22066,53 @@ void* wolfSSL_GetRsaVerifyCtx(WOLFSSL* ssl)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef WC_RSA_PSS
|
||||
void wolfSSL_CTX_SetRsaPssSignCb(WOLFSSL_CTX* ctx, CallbackRsaPssSign cb)
|
||||
{
|
||||
if (ctx)
|
||||
ctx->RsaPssSignCb = cb;
|
||||
}
|
||||
|
||||
|
||||
void wolfSSL_SetRsaPssSignCtx(WOLFSSL* ssl, void *ctx)
|
||||
{
|
||||
if (ssl)
|
||||
ssl->RsaPssSignCtx = ctx;
|
||||
}
|
||||
|
||||
|
||||
void* wolfSSL_GetRsaPssSignCtx(WOLFSSL* ssl)
|
||||
{
|
||||
if (ssl)
|
||||
return ssl->RsaPssSignCtx;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
void wolfSSL_CTX_SetRsaPssVerifyCb(WOLFSSL_CTX* ctx, CallbackRsaPssVerify cb)
|
||||
{
|
||||
if (ctx)
|
||||
ctx->RsaPssVerifyCb = cb;
|
||||
}
|
||||
|
||||
|
||||
void wolfSSL_SetRsaPssVerifyCtx(WOLFSSL* ssl, void *ctx)
|
||||
{
|
||||
if (ssl)
|
||||
ssl->RsaPssVerifyCtx = ctx;
|
||||
}
|
||||
|
||||
|
||||
void* wolfSSL_GetRsaPssVerifyCtx(WOLFSSL* ssl)
|
||||
{
|
||||
if (ssl)
|
||||
return ssl->RsaPssVerifyCtx;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
void wolfSSL_CTX_SetRsaEncCb(WOLFSSL_CTX* ctx, CallbackRsaEnc cb)
|
||||
{
|
||||
if (ctx)
|
||||
|
||||
Reference in New Issue
Block a user