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 /apps | |
parent | 7bd3a58022f7dca4fc7c45081428997d947ff94e (diff) |
More get0 et al. changes. Also provide fgrep targets in CHANGES
where the new functions are mentioned.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/verify.c | 4 | ||||
-rw-r--r-- | apps/x509.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/verify.c b/apps/verify.c index c2b19a1b07..267ee4ecd7 100644 --- a/apps/verify.c +++ b/apps/verify.c @@ -124,7 +124,7 @@ int MAIN(int argc, char **argv) BIO_printf(bio_err, "unrecognized purpose\n"); goto end; } - xptmp = X509_PURPOSE_iget(i); + xptmp = X509_PURPOSE_get0(i); purpose = X509_PURPOSE_get_id(xptmp); } else if (strcmp(*argv,"-untrusted") == 0) @@ -190,7 +190,7 @@ end: BIO_printf(bio_err,"recognized usages:\n"); for(i = 0; i < X509_PURPOSE_get_count(); i++) { X509_PURPOSE *ptmp; - ptmp = X509_PURPOSE_iget(i); + ptmp = X509_PURPOSE_get0(i); BIO_printf(bio_err, "\t%-10s\t%s\n", X509_PURPOSE_get0_sname(ptmp), X509_PURPOSE_get0_name(ptmp)); } diff --git a/apps/x509.c b/apps/x509.c index 407f839504..d5c0d0404e 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -555,7 +555,7 @@ bad: } } - if(alias) X509_alias_rset(x, (unsigned char *)alias, -1); + if(alias) X509_alias_set1(x, (unsigned char *)alias, -1); if(clrtrust) X509_trust_clear(x); if(clrreject) X509_reject_clear(x); @@ -599,7 +599,7 @@ bad: else if (aliasout == i) { unsigned char *alstr; - alstr = X509_alias_iget(x, NULL); + alstr = X509_alias_get0(x, NULL); if(alstr) BIO_printf(STDout,"%s\n", alstr); else BIO_puts(STDout,"<No Alias>\n"); } @@ -614,7 +614,7 @@ bad: BIO_printf(STDout, "Certificate purposes:\n"); for(j = 0; j < X509_PURPOSE_get_count(); j++) { - ptmp = X509_PURPOSE_iget(j); + ptmp = X509_PURPOSE_get0(j); purpose_print(STDout, x, ptmp); } } |