You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// |pctx| should be freed by the user of |EVP_MD_CTX| if
105
-
// |EVP_MD_CTX_FLAG_KEEP_PKEY_CTX| is set. Everything other than the external
106
-
// |pctx| that |ctx->pctx| was pointing to is cleaned up when the flag is set.
109
+
// |EVP_MD_CTX_FLAG_KEEP_PKEY_CTX| is set. Everything other than the external |pctx| that |ctx->pctx| was pointing to is cleaned up when the flag is set.
107
110
if (ctx->pctx_ops&& !(ctx->flags&EVP_MD_CTX_FLAG_KEEP_PKEY_CTX)) {
108
111
ctx->pctx_ops->free(ctx->pctx);
109
112
}
@@ -114,6 +117,9 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) {
114
117
}
115
118
116
119
voidEVP_MD_CTX_cleanse(EVP_MD_CTX*ctx) {
120
+
if (ctx==NULL||ctx->md_data==NULL||ctx->digest==NULL) {
0 commit comments