~ubuntu-branches/ubuntu/maverick/openssl/maverick

« 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
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051213213742-d0ydaylf80l16bj1
Tags: upstream-0.9.8a
ImportĀ upstreamĀ versionĀ 0.9.8a

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;