diff options
author | Bodo Möller <bodo@openssl.org> | 2000-02-26 08:36:46 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-02-26 08:36:46 +0000 |
commit | 6d0d5431d4e3e5d8a29166be3ba9362fb988a312 (patch) | |
tree | 03891e30bc299ef2b9b5af364d403473f4cae168 /crypto/x509/x509_trs.c | |
parent | 7bd3a58022f7dca4fc7c45081428997d947ff94e (diff) |
More get0 et al. changes. Also provide fgrep targets in CHANGES
where the new functions are mentioned.
Diffstat (limited to 'crypto/x509/x509_trs.c')
-rw-r--r-- | crypto/x509/x509_trs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/x509/x509_trs.c b/crypto/x509/x509_trs.c index 3f76cd89df..9f7d67952d 100644 --- a/crypto/x509/x509_trs.c +++ b/crypto/x509/x509_trs.c @@ -109,7 +109,7 @@ int X509_check_trust(X509 *x, int id, int flags) if(id == -1) return 1; if(!(idx = X509_TRUST_get_by_id(id))) return default_trust(id, x, flags); - pt = X509_TRUST_iget(idx); + pt = X509_TRUST_get0(idx); return pt->check_trust(pt, x, flags); } @@ -119,7 +119,7 @@ int X509_TRUST_get_count(void) return sk_X509_TRUST_num(trtable) + X509_TRUST_COUNT; } -X509_TRUST * X509_TRUST_iget(int idx) +X509_TRUST * X509_TRUST_get0(int idx) { if(idx < 0) return NULL; if(idx < X509_TRUST_COUNT) return trstandard + idx; @@ -157,7 +157,7 @@ int X509_TRUST_add(int id, int flags, int (*ck)(X509_TRUST *, X509 *, int), return 0; } trtmp->flags = X509_TRUST_DYNAMIC; - } else trtmp = X509_TRUST_iget(idx); + } else trtmp = X509_TRUST_get0(idx); /* Free existing name if dynamic */ if(trtmp->flags & X509_TRUST_DYNAMIC_NAME) Free(trtmp->name); |