~ubuntu-branches/ubuntu/hardy/openssl/hardy-security

« back to all changes in this revision

Viewing changes to crypto/x509/x509_trs.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2005-12-13 21:37:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213213742-7em5nrw5c7ceegyd
Tags: 0.9.8a-5
Stop ssh from crashing randomly on sparc (Closes: #335912)
Patch from upstream cvs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
X509_TRUST * X509_TRUST_get0(int idx)
129
129
{
130
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
132
        return sk_X509_TRUST_value(trtable, idx - X509_TRUST_COUNT);
133
133
}
134
134
 
219
219
 
220
220
void X509_TRUST_cleanup(void)
221
221
{
222
 
        int i;
 
222
        unsigned int i;
223
223
        for(i = 0; i < X509_TRUST_COUNT; i++) trtable_free(trstandard + i);
224
224
        sk_X509_TRUST_pop_free(trtable, trtable_free);
225
225
        trtable = NULL;