From 70b2186e240dc39fd75e3a89ca931f8ba4117e80 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 31 Mar 2009 19:54:51 +0000 Subject: [PATCH] Stop warnings. --- apps/dgst.c | 2 +- engines/ccgost/gost_ameth.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/dgst.c b/apps/dgst.c index 83b79c328a..6a6e7ba6cf 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -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 *file,BIO *bmd) { - ssize_t len; + size_t len; int i; for (;;) diff --git a/engines/ccgost/gost_ameth.c b/engines/ccgost/gost_ameth.c index 7b3ba5048b..16a99ac2b2 100644 --- a/engines/ccgost/gost_ameth.c +++ b/engines/ccgost/gost_ameth.c @@ -807,18 +807,18 @@ static int mac_ctrl_gost(EVP_PKEY *pkey, int op, long arg1, void *arg2) 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)); 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))); 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; 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; } -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; int nid; EC_KEY *ec = EVP_PKEY_get0(pkey); -- GitLab