diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_trs.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_trs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_trs.c b/src/lib/libcrypto/x509/x509_trs.c index 881252608d..9c84a59d52 100644 --- a/src/lib/libcrypto/x509/x509_trs.c +++ b/src/lib/libcrypto/x509/x509_trs.c | |||
@@ -128,7 +128,7 @@ int X509_TRUST_get_count(void) | |||
128 | X509_TRUST * X509_TRUST_get0(int idx) | 128 | X509_TRUST * X509_TRUST_get0(int idx) |
129 | { | 129 | { |
130 | if(idx < 0) return NULL; | 130 | if(idx < 0) return NULL; |
131 | if(idx < X509_TRUST_COUNT) return trstandard + idx; | 131 | if(idx < (int)X509_TRUST_COUNT) return trstandard + idx; |
132 | return sk_X509_TRUST_value(trtable, idx - X509_TRUST_COUNT); | 132 | return sk_X509_TRUST_value(trtable, idx - X509_TRUST_COUNT); |
133 | } | 133 | } |
134 | 134 | ||
@@ -219,7 +219,7 @@ static void trtable_free(X509_TRUST *p) | |||
219 | 219 | ||
220 | void X509_TRUST_cleanup(void) | 220 | void X509_TRUST_cleanup(void) |
221 | { | 221 | { |
222 | int i; | 222 | unsigned int i; |
223 | for(i = 0; i < X509_TRUST_COUNT; i++) trtable_free(trstandard + i); | 223 | for(i = 0; i < X509_TRUST_COUNT; i++) trtable_free(trstandard + i); |
224 | sk_X509_TRUST_pop_free(trtable, trtable_free); | 224 | sk_X509_TRUST_pop_free(trtable, trtable_free); |
225 | trtable = NULL; | 225 | trtable = NULL; |