diff options
author | Richard Levitte <levitte@openssl.org> | 2015-11-29 20:09:34 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-12-07 17:39:23 +0100 |
commit | 2db6bf6f856fc7a6e848e3c45b274b327a86784c (patch) | |
tree | 1b8dcbfe303680534358f4746338d3865a7ea9b7 /crypto/evp/evp_locl.h | |
parent | Adjust all accesses to EVP_MD_CTX to use accessor functions. (diff) | |
download | openssl-2db6bf6f856fc7a6e848e3c45b274b327a86784c.tar.xz openssl-2db6bf6f856fc7a6e848e3c45b274b327a86784c.zip |
Make the definition of EVP_MD opaque
This moves the definition to crypto/include/internal/evp_int.h and
defines all the necessary method creators, destructors, writers and
accessors. The name standard for the latter is inspired from the
corresponding functions to manipulate UI methods.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/evp/evp_locl.h')
-rw-r--r-- | crypto/evp/evp_locl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/evp/evp_locl.h b/crypto/evp/evp_locl.h index 1fbdb65641..979cd8391a 100644 --- a/crypto/evp/evp_locl.h +++ b/crypto/evp/evp_locl.h @@ -71,9 +71,12 @@ struct evp_md_ctx_st { int (*update) (EVP_MD_CTX *ctx, const void *data, size_t count); } /* EVP_MD_CTX */ ; +# define M_EVP_MD_size(e) ((e)->md_size) +# define M_EVP_MD_block_size(e) ((e)->block_size) # define M_EVP_MD_CTX_set_flags(ctx,flgs) ((ctx)->flags|=(flgs)) # define M_EVP_MD_CTX_clear_flags(ctx,flgs) ((ctx)->flags&=~(flgs)) # define M_EVP_MD_CTX_test_flags(ctx,flgs) ((ctx)->flags&(flgs)) +# define M_EVP_MD_type(e) ((e)->type) # define M_EVP_MD_CTX_type(e) M_EVP_MD_type(M_EVP_MD_CTX_md(e)) # define M_EVP_MD_CTX_md(e) ((e)->digest) |