From fa0f834c204020e9d2ce5508070f7a2eda663442 Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Mon, 15 Sep 2008 04:02:37 +0000 Subject: [PATCH] Fix build warnings. --- crypto/bn/bn_nist.c | 1 - crypto/x509/x509_vfy.c | 2 +- crypto/x509v3/v3_ncons.c | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crypto/bn/bn_nist.c b/crypto/bn/bn_nist.c index bd04e7e29d..c3356b7cf9 100644 --- a/crypto/bn/bn_nist.c +++ b/crypto/bn/bn_nist.c @@ -715,7 +715,6 @@ int BN_nist_mod_521(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, #define BN_NIST_521_TOP_MASK (BN_ULONG)0x1FF #endif int top, ret = 0; - BN_ULONG *r_d; BIGNUM *tmp; field = &_bignum_nist_p_521; /* just to make sure */ diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 5c94d3b1b8..6f3274c3a2 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -823,7 +823,7 @@ static int get_crl_sk(X509_STORE_CTX *ctx, X509_CRL **pcrl, X509_CRL **pdcrl, unsigned int reasons, best_reasons = 0; X509 *x = ctx->current_cert; X509_CRL *crl, *best_crl = NULL; - X509 *crl_issuer, *best_crl_issuer = NULL; + X509 *crl_issuer = NULL, *best_crl_issuer = NULL; for (i = 0; i < sk_X509_CRL_num(crls); i++) { diff --git a/crypto/x509v3/v3_ncons.c b/crypto/x509v3/v3_ncons.c index 511fbd73ca..9a99cb2fa0 100644 --- a/crypto/x509v3/v3_ncons.c +++ b/crypto/x509v3/v3_ncons.c @@ -458,7 +458,7 @@ static int nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base) const char *baseptr = (char *)base->data; const char *hostptr = (char *)uri->data; const char *p = strchr(hostptr, ':'); - size_t hostlen; + int hostlen; /* Check for foo:// and skip past it */ if (!p || (p[1] != '/') || (p[2] != '/')) return X509_V_ERR_UNSUPPORTED_NAME_SYNTAX; @@ -493,7 +493,7 @@ static int nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base) return X509_V_ERR_PERMITTED_VIOLATION; } - if ((base->length != hostlen) || strncasecmp(hostptr, baseptr, hostlen)) + if ((base->length != (int)hostlen) || strncasecmp(hostptr, baseptr, hostlen)) return X509_V_ERR_PERMITTED_VIOLATION; return X509_V_OK; -- 2.34.1