Some of the MS_STATIC use in crypto/evp is a legacy from the days when
authorDr. Stephen Henson <steve@openssl.org>
Sat, 27 Nov 2010 17:37:03 +0000 (17:37 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 27 Nov 2010 17:37:03 +0000 (17:37 +0000)
EVP_MD_CTX was much larger: it isn't needed anymore.

crypto/evp/m_sigver.c
crypto/evp/p_sign.c
crypto/evp/p_verify.c

index c7b7390b5eb64f1c010357dd0509d4a24b3d3f11..664ed0c2122cc716ed7cc8f17d373e1e86bd3722 100644 (file)
@@ -156,7 +156,7 @@ int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen)
                sctx = 0;
        if (sigret)
                {
-               MS_STATIC EVP_MD_CTX tmp_ctx;
+               EVP_MD_CTX tmp_ctx;
                unsigned char md[EVP_MAX_MD_SIZE];
                unsigned int mdlen;
                EVP_MD_CTX_init(&tmp_ctx);
@@ -192,7 +192,7 @@ int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen)
 
 int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, unsigned char *sig, size_t siglen)
        {
-       MS_STATIC EVP_MD_CTX tmp_ctx;
+       EVP_MD_CTX tmp_ctx;
        unsigned char md[EVP_MAX_MD_SIZE];
        int r;
        unsigned int mdlen;
index b11aea9f80ffba00143a915fe51a9d6050b0ecd6..8afb664306e908e896249f6a70bcbd6cdfe6c4e5 100644 (file)
@@ -81,7 +81,7 @@ int EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen,
        unsigned char m[EVP_MAX_MD_SIZE];
        unsigned int m_len;
        int i = 0,ok = 0,v;
-       MS_STATIC EVP_MD_CTX tmp_ctx;
+       EVP_MD_CTX tmp_ctx;
        EVP_PKEY_CTX *pkctx = NULL;
 
        *siglen=0;
index 013825e347dd6541534b9798845037ce7945de39..c66d63ccf8597ebf1721551dfa1fb082c93d304e 100644 (file)
@@ -68,7 +68,7 @@ int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,
        unsigned char m[EVP_MAX_MD_SIZE];
        unsigned int m_len;
        int i = 0,ok = 0,v;
-       MS_STATIC EVP_MD_CTX tmp_ctx;
+       EVP_MD_CTX tmp_ctx;
        EVP_PKEY_CTX *pkctx = NULL;
 
        EVP_MD_CTX_init(&tmp_ctx);