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:05:36 +0000 (21:05 +0000)
(cherry picked from commit 1abfa78a8ba714f7e47bd674db53dbe303cd1ce7)

crypto/evp/evp.h
crypto/evp/m_sigver.c
doc/crypto/EVP_DigestVerifyInit.pod

index 2b130c483d5e7cc57709703e92f123eadf8d79a0..a5aa4c87fcebe649f0182b09705a6472a6558ff9 100644 (file)
@@ -675,7 +675,7 @@ __owur int  EVP_DigestSignFinal(EVP_MD_CTX *ctx,
 __owur int     EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
                        const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey);
 __owur int     EVP_DigestVerifyFinal(EVP_MD_CTX *ctx,
-                       unsigned char *sig, size_t siglen);
+                       const unsigned char *sig, size_t siglen);
 
 __owur int     EVP_OpenInit(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *type,
                const unsigned char *ek, int ekl, const unsigned char *iv,
index 9f83d3e25f4b03b065901fd7b8988adbaae161eb..bc5e132c59b0b0e8d04c50c5f38c0f97d1eb4d41 100644 (file)
@@ -205,7 +205,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)
        {
        unsigned char md[EVP_MAX_MD_SIZE];
        int r;
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