Stop warnings.

This commit is contained in:
Dr. Stephen Henson 2009-03-31 19:54:51 +00:00
parent 64ecdaeca9
commit 70b2186e24
2 changed files with 5 additions and 5 deletions

View File

@ -551,7 +551,7 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
const char *sig_name, const char *md_name, const char *sig_name, const char *md_name,
const char *file,BIO *bmd) const char *file,BIO *bmd)
{ {
ssize_t len; size_t len;
int i; int i;
for (;;) for (;;)

View File

@ -807,18 +807,18 @@ static int mac_ctrl_gost(EVP_PKEY *pkey, int op, long arg1, void *arg2)
return -2; return -2;
} }
int gost94_param_encode(const EVP_PKEY *pkey, unsigned char **pder) static int gost94_param_encode(const EVP_PKEY *pkey, unsigned char **pder)
{ {
int nid=gost94_nid_by_params(EVP_PKEY_get0((EVP_PKEY *)pkey)); int nid=gost94_nid_by_params(EVP_PKEY_get0((EVP_PKEY *)pkey));
return i2d_ASN1_OBJECT(OBJ_nid2obj(nid),pder); return i2d_ASN1_OBJECT(OBJ_nid2obj(nid),pder);
} }
int gost2001_param_encode(const EVP_PKEY *pkey, unsigned char **pder) static int gost2001_param_encode(const EVP_PKEY *pkey, unsigned char **pder)
{ {
int nid = EC_GROUP_get_curve_name(EC_KEY_get0_group(EVP_PKEY_get0((EVP_PKEY *)pkey))); int nid = EC_GROUP_get_curve_name(EC_KEY_get0_group(EVP_PKEY_get0((EVP_PKEY *)pkey)));
return i2d_ASN1_OBJECT(OBJ_nid2obj(nid),pder); return i2d_ASN1_OBJECT(OBJ_nid2obj(nid),pder);
} }
int gost94_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) static int gost94_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen)
{ {
ASN1_OBJECT *obj=NULL; ASN1_OBJECT *obj=NULL;
DSA *dsa = EVP_PKEY_get0(pkey); DSA *dsa = EVP_PKEY_get0(pkey);
@ -837,7 +837,7 @@ int gost94_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen)
return 1; return 1;
} }
int gost2001_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) { static int gost2001_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) {
ASN1_OBJECT *obj=NULL; ASN1_OBJECT *obj=NULL;
int nid; int nid;
EC_KEY *ec = EVP_PKEY_get0(pkey); EC_KEY *ec = EVP_PKEY_get0(pkey);