Constify.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 14 Nov 2013 21:00:40 +0000 (21:00 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 14 Nov 2013 21:00:40 +0000 (21:00 +0000)
crypto/evp/evp.h
crypto/evp/m_sigver.c
doc/crypto/EVP_DigestVerifyInit.pod

index e330075dd7fddcb2418c98dadaf3cc2e95ac690c..adf5389084a85643794cdb4a37c1ee43373dbc80 100644 (file)
@@ -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,
index 7e2731f4a4ea401d18c5d7df2881326d98f10e6b..727ee0dfbacec1000d9510cb41d31536c1c50e89 100644 (file)
@@ -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];
index f22448897839ba5a09815495c9aa769f474a32f3..c59866cfeeba836c2f90d47e73c0ef4a05afe52d 100644 (file)
@@ -11,7 +11,7 @@ EVP_DigestVerifyInit, EVP_DigestVerifyUpdate, EVP_DigestVerifyFinal - EVP signat
  int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
                        const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey);
  int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *d, unsigned int cnt);
- 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);
 
 =head1 DESCRIPTION