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:34:57 +0000 (17:34 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 27 Nov 2010 17:34:57 +0000 (17:34 +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 f0b7f95059e75f9e0f8e3aa57a898b57f23baa20..7e2731f4a4ea401d18c5d7df2881326d98f10e6b 100644 (file)
@@ -137,7 +137,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);
@@ -173,7 +173,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 8df6d48a7ec0892d554d89839fa17039eb119793..bb893f5bde45595f1ff1162bf17c3cdbea7081d2 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,ok=0,v;
-       MS_STATIC EVP_MD_CTX tmp_ctx;
+       EVP_MD_CTX tmp_ctx;
 
        *siglen=0;
        EVP_MD_CTX_init(&tmp_ctx);
index 8db46412f3771720b9afde5faa46a4dcfc133dc9..41d4b671301e43d4ba41937286261a0568c3d98e 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,ok=0,v;
-       MS_STATIC EVP_MD_CTX tmp_ctx;
+       EVP_MD_CTX tmp_ctx;
 
        EVP_MD_CTX_init(&tmp_ctx);
        EVP_MD_CTX_copy_ex(&tmp_ctx,ctx);