From 10f0c85cfc26ffafd426d9797275191829efd599 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Fri, 16 Nov 2007 03:03:01 +0000 Subject: [PATCH] Fix warnings. --- engines/ccgost/gost_pmeth.c | 2 +- engines/ccgost/gost_sign.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/engines/ccgost/gost_pmeth.c b/engines/ccgost/gost_pmeth.c index 4f96a7508b..8a38e39aae 100644 --- a/engines/ccgost/gost_pmeth.c +++ b/engines/ccgost/gost_pmeth.c @@ -368,7 +368,7 @@ static int pkey_gost_encrypt_init(EVP_PKEY_CTX *ctx) return 1; } /* --------------- Derive init ------------------------------------*/ -int pkey_gost_derive_init(EVP_PKEY_CTX *ctx) +static int pkey_gost_derive_init(EVP_PKEY_CTX *ctx) { return 1; } diff --git a/engines/ccgost/gost_sign.c b/engines/ccgost/gost_sign.c index 126757e271..4755aee8fa 100644 --- a/engines/ccgost/gost_sign.c +++ b/engines/ccgost/gost_sign.c @@ -100,7 +100,7 @@ DSA_SIG *gost_do_sign(const unsigned char *dgst,int dlen, DSA *dsa) * Packs signature according to Cryptocom rules * and frees up DSA_SIG structure */ - +/* int pack_sign_cc(DSA_SIG *s,int order,unsigned char *sig, size_t *siglen) { *siglen = 2*order; @@ -111,6 +111,7 @@ int pack_sign_cc(DSA_SIG *s,int order,unsigned char *sig, size_t *siglen) DSA_SIG_free(s); return 1; } +*/ /* * Packs signature according to Cryptopro rules * and frees up DSA_SIG structure @@ -246,7 +247,7 @@ int gost_sign_keygen(DSA *dsa) } /* Unpack signature according to cryptocom rules */ - +/* DSA_SIG *unpack_cc_signature(const unsigned char *sig,size_t siglen) { DSA_SIG *s; @@ -260,7 +261,7 @@ DSA_SIG *unpack_cc_signature(const unsigned char *sig,size_t siglen) s->s = getbnfrombuf(sig + siglen/2, siglen/2); return s; } - +*/ /* Unpack signature according to cryptopro rules */ DSA_SIG *unpack_cp_signature(const unsigned char *sig,size_t siglen) { -- 2.34.1