projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adjust all accesses to EVP_MD_CTX to use accessor functions.
[openssl.git]
/
engines
/
e_ossltest.c
diff --git
a/engines/e_ossltest.c
b/engines/e_ossltest.c
index 94e53cd0caeedaffacb47e4e413dfe834cabe08a..02c3c58570d50fb12ac790ae60d8c51418e6c9ea 100644
(file)
--- a/
engines/e_ossltest.c
+++ b/
engines/e_ossltest.c
@@
-365,7
+365,7
@@
static void fill_known_data(unsigned char *md, unsigned int len)
* the same value.
*/
#undef data
* the same value.
*/
#undef data
-#define data(ctx) ((MD5_CTX *)
(ctx)->md_data
)
+#define data(ctx) ((MD5_CTX *)
EVP_MD_CTX_md_data(ctx)
)
static int digest_md5_init(EVP_MD_CTX *ctx)
{
return MD5_Init(data(ctx));
static int digest_md5_init(EVP_MD_CTX *ctx)
{
return MD5_Init(data(ctx));
@@
-392,7
+392,7
@@
static int digest_md5_final(EVP_MD_CTX *ctx, unsigned char *md)
* SHA1 implementation.
*/
#undef data
* SHA1 implementation.
*/
#undef data
-#define data(ctx) ((SHA_CTX *)
(ctx)->md_data
)
+#define data(ctx) ((SHA_CTX *)
EVP_MD_CTX_md_data(ctx)
)
static int digest_sha1_init(EVP_MD_CTX *ctx)
{
return SHA1_Init(data(ctx));
static int digest_sha1_init(EVP_MD_CTX *ctx)
{
return SHA1_Init(data(ctx));
@@
-419,7
+419,7
@@
static int digest_sha1_final(EVP_MD_CTX *ctx, unsigned char *md)
* SHA256 implementation.
*/
#undef data
* SHA256 implementation.
*/
#undef data
-#define data(ctx) ((SHA256_CTX *)
(ctx)->md_data
)
+#define data(ctx) ((SHA256_CTX *)
EVP_MD_CTX_md_data(ctx)
)
static int digest_sha256_init(EVP_MD_CTX *ctx)
{
return SHA256_Init(data(ctx));
static int digest_sha256_init(EVP_MD_CTX *ctx)
{
return SHA256_Init(data(ctx));
@@
-446,7
+446,7
@@
static int digest_sha256_final(EVP_MD_CTX *ctx, unsigned char *md)
* SHA384/512 implementation.
*/
#undef data
* SHA384/512 implementation.
*/
#undef data
-#define data(ctx) ((SHA512_CTX *)
(ctx)->md_data
)
+#define data(ctx) ((SHA512_CTX *)
EVP_MD_CTX_md_data(ctx)
)
static int digest_sha384_init(EVP_MD_CTX *ctx)
{
return SHA384_Init(data(ctx));
static int digest_sha384_init(EVP_MD_CTX *ctx)
{
return SHA384_Init(data(ctx));