diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2013-11-14 21:00:40 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-11-14 21:00:40 +0000 |
commit | 1abfa78a8ba714f7e47bd674db53dbe303cd1ce7 (patch) | |
tree | 12621def1e4c2d483e71a63f4ad73272df701d8d /crypto | |
parent | edc687ba0fa14004a32eafea8856f898113847b5 (diff) |
Constify.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/evp.h | 2 | ||||
-rw-r--r-- | crypto/evp/m_sigver.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index e330075dd7..adf5389084 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -629,7 +629,7 @@ int EVP_DigestSignFinal(EVP_MD_CTX *ctx, int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey); int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, - unsigned char *sig, size_t siglen); + const unsigned char *sig, size_t siglen); int EVP_OpenInit(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *type, const unsigned char *ek, int ekl, const unsigned char *iv, diff --git a/crypto/evp/m_sigver.c b/crypto/evp/m_sigver.c index 7e2731f4a4..727ee0dfba 100644 --- a/crypto/evp/m_sigver.c +++ b/crypto/evp/m_sigver.c @@ -171,7 +171,8 @@ int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen) return 1; } -int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, unsigned char *sig, size_t siglen) +int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, + size_t siglen) { EVP_MD_CTX tmp_ctx; unsigned char md[EVP_MAX_MD_SIZE]; |