diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/apps.c | 2 | ||||
-rw-r--r-- | apps/apps.h | 3 | ||||
-rw-r--r-- | apps/dhparam.c | 4 | ||||
-rw-r--r-- | apps/dsa.c | 2 | ||||
-rw-r--r-- | apps/dsaparam.c | 2 | ||||
-rw-r--r-- | apps/gendsa.c | 2 | ||||
-rw-r--r-- | apps/genrsa.c | 2 | ||||
-rw-r--r-- | apps/req.c | 2 | ||||
-rw-r--r-- | apps/rsa.c | 2 | ||||
-rw-r--r-- | apps/x509.c | 4 |
10 files changed, 13 insertions, 12 deletions
diff --git a/apps/apps.c b/apps/apps.c index fca3775b77..ec1cfe9927 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -1148,7 +1148,7 @@ void print_name(BIO *out, const char *title, X509_NAME *nm, } } -void print_bignum_var(BIO *out, BIGNUM *in, const char *var, +void print_bignum_var(BIO *out, const BIGNUM *in, const char *var, int len, unsigned char *buffer) { BIO_printf(out, " static unsigned char %s_%d[] = {", var, len); diff --git a/apps/apps.h b/apps/apps.h index 6a0acab58c..d56c07df31 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -380,7 +380,8 @@ int dump_cert_text(BIO *out, X509 *x); void print_name(BIO *out, const char *title, X509_NAME *nm, unsigned long lflags); # endif -void print_bignum_var(BIO *, BIGNUM *, const char*, int, unsigned char *); +void print_bignum_var(BIO *, const BIGNUM *, const char*, + int, unsigned char *); void print_array(BIO *, const char *, int, const unsigned char *); int set_cert_ex(unsigned long *flags, const char *arg); int set_name_ex(unsigned long *flags, const char *arg); diff --git a/apps/dhparam.c b/apps/dhparam.c index f86e315599..ab2e787f76 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -298,7 +298,7 @@ int dhparam_main(int argc, char **argv) if (C) { unsigned char *data; int len, bits; - BIGNUM *pbn, *gbn; + const BIGNUM *pbn, *gbn; len = DH_size(dh); bits = DH_bits(dh); @@ -337,7 +337,7 @@ int dhparam_main(int argc, char **argv) } if (!noout) { - BIGNUM *q; + const BIGNUM *q; DH_get0_pqg(dh, NULL, &q, NULL); if (outformat == FORMAT_ASN1) i = i2d_DHparams_bio(out, dh); diff --git a/apps/dsa.c b/apps/dsa.c index ef50fede78..6ac9a40282 100644 --- a/apps/dsa.c +++ b/apps/dsa.c @@ -195,7 +195,7 @@ int dsa_main(int argc, char **argv) } if (modulus) { - BIGNUM *pub_key = NULL; + const BIGNUM *pub_key = NULL; DSA_get0_key(dsa, &pub_key, NULL); BIO_printf(out, "Public Key="); BN_print(out, pub_key); diff --git a/apps/dsaparam.c b/apps/dsaparam.c index cd2ca4c3f7..404266009e 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -215,7 +215,7 @@ int dsaparam_main(int argc, char **argv) } if (C) { - BIGNUM *p = NULL, *q = NULL, *g = NULL; + const BIGNUM *p = NULL, *q = NULL, *g = NULL; unsigned char *data; int len, bits_p; diff --git a/apps/gendsa.c b/apps/gendsa.c index 2be3b9a055..5dacf1b9fc 100644 --- a/apps/gendsa.c +++ b/apps/gendsa.c @@ -53,7 +53,7 @@ int gendsa_main(int argc, char **argv) char *outfile = NULL, *passoutarg = NULL, *passout = NULL, *prog; OPTION_CHOICE o; int ret = 1, private = 0; - BIGNUM *p = NULL; + const BIGNUM *p = NULL; prog = opt_init(argc, argv, gendsa_options); while ((o = opt_next()) != OPT_EOF) { diff --git a/apps/genrsa.c b/apps/genrsa.c index 79e2dae800..4d104d2882 100644 --- a/apps/genrsa.c +++ b/apps/genrsa.c @@ -59,7 +59,7 @@ int genrsa_main(int argc, char **argv) ENGINE *eng = NULL; BIGNUM *bn = BN_new(); BIO *out = NULL; - BIGNUM *e; + const BIGNUM *e; RSA *rsa = NULL; const EVP_CIPHER *enc = NULL; int ret = 1, num = DEFBITS, private = 0; diff --git a/apps/req.c b/apps/req.c index ca8a9af874..d1f5dcb345 100644 --- a/apps/req.c +++ b/apps/req.c @@ -768,7 +768,7 @@ int req_main(int argc, char **argv) fprintf(stdout, "Modulus="); #ifndef OPENSSL_NO_RSA if (EVP_PKEY_base_id(tpubkey) == EVP_PKEY_RSA) { - BIGNUM *n; + const BIGNUM *n; RSA_get0_key(EVP_PKEY_get0_RSA(tpubkey), &n, NULL, NULL); BN_print(out, n); } else diff --git a/apps/rsa.c b/apps/rsa.c index 3a1195f566..63e88e6762 100644 --- a/apps/rsa.c +++ b/apps/rsa.c @@ -214,7 +214,7 @@ int rsa_main(int argc, char **argv) } if (modulus) { - BIGNUM *n; + const BIGNUM *n; RSA_get0_key(rsa, &n, NULL, NULL); BIO_printf(out, "Modulus="); BN_print(out, n); diff --git a/apps/x509.c b/apps/x509.c index 0753817257..4191a345bb 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -684,14 +684,14 @@ int x509_main(int argc, char **argv) BIO_printf(out, "Modulus="); #ifndef OPENSSL_NO_RSA if (EVP_PKEY_id(pkey) == EVP_PKEY_RSA) { - BIGNUM *n; + const BIGNUM *n; RSA_get0_key(EVP_PKEY_get0_RSA(pkey), &n, NULL, NULL); BN_print(out, n); } else #endif #ifndef OPENSSL_NO_DSA if (EVP_PKEY_id(pkey) == EVP_PKEY_DSA) { - BIGNUM *dsapub = NULL; + const BIGNUM *dsapub = NULL; DSA_get0_key(EVP_PKEY_get0_DSA(pkey), &dsapub, NULL); BN_print(out, dsapub); } else |