diff options
author | Geoff Thorpe <geoff@openssl.org> | 2008-09-15 04:02:37 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2008-09-15 04:02:37 +0000 |
commit | fa0f834c204020e9d2ce5508070f7a2eda663442 (patch) | |
tree | 30abf88071059415420652e3e7d58cd10e5034b7 /crypto/x509v3 | |
parent | 96562f2fb31a014fb5da44859900058b39b5bfaf (diff) | |
download | openssl-fa0f834c204020e9d2ce5508070f7a2eda663442.tar.gz |
Fix build warnings.
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_ncons.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |