summaryrefslogtreecommitdiff
path: root/lib/x509
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x509')
-rw-r--r--lib/x509/common.c2
-rw-r--r--lib/x509/dn.c4
-rw-r--r--lib/x509/extensions.c2
-rw-r--r--lib/x509/pkcs7.c4
-rw-r--r--lib/x509/privkey_pkcs8.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/lib/x509/common.c b/lib/x509/common.c
index c361e79b3f..18bf475624 100644
--- a/lib/x509/common.c
+++ b/lib/x509/common.c
@@ -791,7 +791,7 @@ _gnutls_x509_export_int (ASN1_TYPE asn1_data,
return GNUTLS_E_INTERNAL_ERROR;
}
- if ((uint) result > *output_data_size)
+ if ((unsigned) result > *output_data_size)
{
gnutls_assert ();
gnutls_free (out);
diff --git a/lib/x509/dn.c b/lib/x509/dn.c
index 819e369900..9020b81713 100644
--- a/lib/x509/dn.c
+++ b/lib/x509/dn.c
@@ -460,7 +460,7 @@ _gnutls_x509_parse_dn_oid (ASN1_TYPE asn1_struct,
if (raw_flag != 0)
{
- if ((uint) len > *sizeof_buf)
+ if ((unsigned) len > *sizeof_buf)
{
*sizeof_buf = len;
result = GNUTLS_E_SHORT_MEMORY_BUFFER;
@@ -617,7 +617,7 @@ _gnutls_x509_get_dn_oid (ASN1_TYPE asn1_struct,
len = strlen (oid) + 1;
- if (*sizeof_oid < (uint) len)
+ if (*sizeof_oid < (unsigned) len)
{
*sizeof_oid = len;
gnutls_assert ();
diff --git a/lib/x509/extensions.c b/lib/x509/extensions.c
index b7d9bb0c4c..461d7152f5 100644
--- a/lib/x509/extensions.c
+++ b/lib/x509/extensions.c
@@ -232,7 +232,7 @@ _gnutls_x509_crt_get_extension_oid (gnutls_x509_crt_t cert,
{
len = strlen (extnID) + 1;
- if (*sizeof_oid < (uint) len)
+ if (*sizeof_oid < (unsigned) len)
{
*sizeof_oid = len;
gnutls_assert ();
diff --git a/lib/x509/pkcs7.c b/lib/x509/pkcs7.c
index 2081e4cb72..fe7823bb31 100644
--- a/lib/x509/pkcs7.c
+++ b/lib/x509/pkcs7.c
@@ -341,7 +341,7 @@ gnutls_pkcs7_get_crt_raw (gnutls_pkcs7_t pkcs7,
end = end - start + 1;
- if ((uint) end > *certificate_size)
+ if ((unsigned) end > *certificate_size)
{
*certificate_size = end;
result = GNUTLS_E_SHORT_MEMORY_BUFFER;
@@ -785,7 +785,7 @@ gnutls_pkcs7_get_crl_raw (gnutls_pkcs7_t pkcs7,
end = end - start + 1;
- if ((uint) end > *crl_size)
+ if ((unsigned) end > *crl_size)
{
*crl_size = end;
result = GNUTLS_E_SHORT_MEMORY_BUFFER;
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c
index 90158670f3..e3cd9d7067 100644
--- a/lib/x509/privkey_pkcs8.c
+++ b/lib/x509/privkey_pkcs8.c
@@ -1596,7 +1596,7 @@ generate_key (schema_id schema,
if (schema == PBES2)
kdf_params->salt_size =
- MIN (sizeof (kdf_params->salt), (uint) (10 + (rnd[1] % 10)));
+ MIN (sizeof (kdf_params->salt), (unsigned) (10 + (rnd[1] % 10)));
else
kdf_params->salt_size = 8;