projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52b66a6
)
The 'type' parameter, an EVP_MD pointer, represents the type of digest
author
Geoff Thorpe
<geoff@openssl.org>
Fri, 25 Jan 2002 03:13:50 +0000
(
03:13
+0000)
committer
Geoff Thorpe
<geoff@openssl.org>
Fri, 25 Jan 2002 03:13:50 +0000
(
03:13
+0000)
required as well as a default implementation (when no ENGINE provides a
replacement implementation). This change makes sure the correct
implementation's "init()" handler is used rather than assuming 'type'.
crypto/evp/digest.c
patch
|
blob
|
history
diff --git
a/crypto/evp/digest.c
b/crypto/evp/digest.c
index 798cf9d0aa18e93d678a0539d85675cf38f1fd41..12c6cec5d88db89077b2ea999d53a1efaae27992 100644
(file)
--- a/
crypto/evp/digest.c
+++ b/
crypto/evp/digest.c
@@
-189,7
+189,7
@@
int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl)
ctx->md_data=OPENSSL_malloc(type->ctx_size);
}
skip_to_init:
- return
type
->init(ctx);
+ return
ctx->digest
->init(ctx);
}
int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data,