mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Fix warnings.
This commit is contained in:
parent
70ba4ee5d5
commit
10f0c85cfc
@ -368,7 +368,7 @@ static int pkey_gost_encrypt_init(EVP_PKEY_CTX *ctx)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
/* --------------- Derive init ------------------------------------*/
|
/* --------------- Derive init ------------------------------------*/
|
||||||
int pkey_gost_derive_init(EVP_PKEY_CTX *ctx)
|
static int pkey_gost_derive_init(EVP_PKEY_CTX *ctx)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ DSA_SIG *gost_do_sign(const unsigned char *dgst,int dlen, DSA *dsa)
|
|||||||
* Packs signature according to Cryptocom rules
|
* Packs signature according to Cryptocom rules
|
||||||
* and frees up DSA_SIG structure
|
* and frees up DSA_SIG structure
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
int pack_sign_cc(DSA_SIG *s,int order,unsigned char *sig, size_t *siglen)
|
int pack_sign_cc(DSA_SIG *s,int order,unsigned char *sig, size_t *siglen)
|
||||||
{
|
{
|
||||||
*siglen = 2*order;
|
*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);
|
DSA_SIG_free(s);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* Packs signature according to Cryptopro rules
|
* Packs signature according to Cryptopro rules
|
||||||
* and frees up DSA_SIG structure
|
* and frees up DSA_SIG structure
|
||||||
@ -246,7 +247,7 @@ int gost_sign_keygen(DSA *dsa)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Unpack signature according to cryptocom rules */
|
/* Unpack signature according to cryptocom rules */
|
||||||
|
/*
|
||||||
DSA_SIG *unpack_cc_signature(const unsigned char *sig,size_t siglen)
|
DSA_SIG *unpack_cc_signature(const unsigned char *sig,size_t siglen)
|
||||||
{
|
{
|
||||||
DSA_SIG *s;
|
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);
|
s->s = getbnfrombuf(sig + siglen/2, siglen/2);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
/* Unpack signature according to cryptopro rules */
|
/* Unpack signature according to cryptopro rules */
|
||||||
DSA_SIG *unpack_cp_signature(const unsigned char *sig,size_t siglen)
|
DSA_SIG *unpack_cp_signature(const unsigned char *sig,size_t siglen)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user