diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-08-16 20:18:04 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-08-17 12:01:29 +0100 |
commit | ac4e257747075958d37665f327bdf685dd2478ab (patch) | |
tree | 80c24b541eca1ba0a03245800bae413956f4ccad /apps | |
parent | 0c8006480f2d5e4999726ab4161b173010bea13a (diff) |
constify X509_ALGOR_get0()
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pkcs12.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c index 5f2573497b..9ef3591d98 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -523,7 +523,7 @@ int pkcs12_main(int argc, char **argv) if ((options & INFO) && PKCS12_mac_present(p12)) { ASN1_INTEGER *tmaciter; X509_ALGOR *macalgid; - ASN1_OBJECT *macobj; + const ASN1_OBJECT *macobj; PKCS12_get0_mac(NULL, &macalgid, NULL, &tmaciter, p12); X509_ALGOR_get0(&macobj, NULL, NULL, macalgid); BIO_puts(bio_err, "MAC:"); @@ -743,8 +743,8 @@ end: static int alg_print(X509_ALGOR *alg) { int pbenid, aparamtype; - ASN1_OBJECT *aoid; - void *aparam; + const ASN1_OBJECT *aoid; + const void *aparam; PBEPARAM *pbe = NULL; X509_ALGOR_get0(&aoid, &aparamtype, &aparam, alg); |