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/x509v3 | |
parent | 7bd3a58022f7dca4fc7c45081428997d947ff94e (diff) |
More get0 et al. changes. Also provide fgrep targets in CHANGES
where the new functions are mentioned.
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_purp.c | 8 | ||||
-rw-r--r-- | crypto/x509v3/x509v3.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/crypto/x509v3/v3_purp.c b/crypto/x509v3/v3_purp.c index 08fbd6767a..b7494ebcd5 100644 --- a/crypto/x509v3/v3_purp.c +++ b/crypto/x509v3/v3_purp.c @@ -107,7 +107,7 @@ int X509_check_purpose(X509 *x, int id, int ca) if(id == -1) return 1; idx = X509_PURPOSE_get_by_id(id); if(idx == -1) return -1; - pt = X509_PURPOSE_iget(idx); + pt = X509_PURPOSE_get0(idx); return pt->check_purpose(pt, x, ca); } @@ -117,7 +117,7 @@ int X509_PURPOSE_get_count(void) return sk_X509_PURPOSE_num(xptable) + X509_PURPOSE_COUNT; } -X509_PURPOSE * X509_PURPOSE_iget(int idx) +X509_PURPOSE * X509_PURPOSE_get0(int idx) { if(idx < 0) return NULL; if(idx < X509_PURPOSE_COUNT) return xstandard + idx; @@ -129,7 +129,7 @@ int X509_PURPOSE_get_by_sname(char *sname) int i; X509_PURPOSE *xptmp; for(i = 0; i < X509_PURPOSE_get_count(); i++) { - xptmp = X509_PURPOSE_iget(i); + xptmp = X509_PURPOSE_get0(i); if(!strcmp(xptmp->sname, sname)) return i; } return -1; @@ -168,7 +168,7 @@ int X509_PURPOSE_add(int id, int trust, int flags, return 0; } ptmp->flags = X509_PURPOSE_DYNAMIC; - } else ptmp = X509_PURPOSE_iget(idx); + } else ptmp = X509_PURPOSE_get0(idx); /* Free existing name if dynamic */ if(ptmp->flags & X509_PURPOSE_DYNAMIC_NAME) { diff --git a/crypto/x509v3/x509v3.h b/crypto/x509v3/x509v3.h index a977bf4215..fe01755797 100644 --- a/crypto/x509v3/x509v3.h +++ b/crypto/x509v3/x509v3.h @@ -529,7 +529,7 @@ int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); int X509_check_purpose(X509 *x, int id, int ca); int X509_PURPOSE_get_count(void); -X509_PURPOSE * X509_PURPOSE_iget(int idx); +X509_PURPOSE * X509_PURPOSE_get0(int idx); int X509_PURPOSE_get_by_sname(char *sname); int X509_PURPOSE_get_by_id(int id); int X509_PURPOSE_add(int id, int trust, int flags, |