Replace GOST_R_MALLOC_FAILURE and GOST_R_NO_MEMORY with ERR_R_MALLOC_FAILURE
[openssl.git] / engines / ccgost / gost_sign.c
index 4095654358fac8537db90b956effe9bbeed0a716..c0224fd3fb8f92e48dde093fc01470697364ea29 100644 (file)
@@ -58,7 +58,7 @@ DSA_SIG *gost_do_sign(const unsigned char *dgst,int dlen, DSA *dsa)
        BN_CTX_start(ctx);
        if (!newsig)
                {
        BN_CTX_start(ctx);
        if (!newsig)
                {
-               GOSTerr(GOST_F_GOST_DO_SIGN,GOST_R_NO_MEMORY);
+               GOSTerr(GOST_F_GOST_DO_SIGN,ERR_R_MALLOC_FAILURE);
                goto err;
                }       
        tmp=BN_CTX_get(ctx);
                goto err;
                }       
        tmp=BN_CTX_get(ctx);
@@ -254,7 +254,7 @@ DSA_SIG *unpack_cc_signature(const unsigned char *sig,size_t siglen)
        s = DSA_SIG_new();
        if (s == NULL)
                {
        s = DSA_SIG_new();
        if (s == NULL)
                {
-               GOSTerr(GOST_F_UNPACK_CC_SIGNATURE,GOST_R_NO_MEMORY);
+               GOSTerr(GOST_F_UNPACK_CC_SIGNATURE,ERR_R_MALLOC_FAILURE);
                return(NULL);
                }
        s->r = getbnfrombuf(sig, siglen/2);
                return(NULL);
                }
        s->r = getbnfrombuf(sig, siglen/2);
@@ -270,7 +270,7 @@ DSA_SIG *unpack_cp_signature(const unsigned char *sig,size_t siglen)
        s = DSA_SIG_new();
        if (s == NULL)
                {
        s = DSA_SIG_new();
        if (s == NULL)
                {
-               GOSTerr(GOST_F_UNPACK_CP_SIGNATURE,GOST_R_NO_MEMORY);
+               GOSTerr(GOST_F_UNPACK_CP_SIGNATURE,ERR_R_MALLOC_FAILURE);
                return NULL;
                }
        s->s = getbnfrombuf(sig , siglen/2);
                return NULL;
                }
        s->s = getbnfrombuf(sig , siglen/2);