diff options
| author | deraadt <> | 2014-07-14 00:35:10 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-07-14 00:35:10 +0000 |
| commit | 0d6c94729d541965f2d40175fc064d81a04e5a51 (patch) | |
| tree | 3d9d44560729b5035db4110597d2d9a4d3133e63 | |
| parent | 2d9a8455fa968a936e9a00a73b9d88feb9bee1eb (diff) | |
| download | openbsd-0d6c94729d541965f2d40175fc064d81a04e5a51.tar.gz openbsd-0d6c94729d541965f2d40175fc064d81a04e5a51.tar.bz2 openbsd-0d6c94729d541965f2d40175fc064d81a04e5a51.zip | |
whitespace
Diffstat (limited to '')
45 files changed, 172 insertions, 172 deletions
diff --git a/src/lib/libssl/doc/openssl.cnf b/src/lib/libssl/doc/openssl.cnf index 7250aacf2c..ed4bde52e8 100644 --- a/src/lib/libssl/doc/openssl.cnf +++ b/src/lib/libssl/doc/openssl.cnf | |||
| @@ -14,7 +14,7 @@ oid_section = new_oids | |||
| 14 | # To use this configuration file with the "-extfile" option of the | 14 | # To use this configuration file with the "-extfile" option of the |
| 15 | # "openssl x509" utility, name here the section containing the | 15 | # "openssl x509" utility, name here the section containing the |
| 16 | # X.509v3 extensions to use: | 16 | # X.509v3 extensions to use: |
| 17 | # extensions = | 17 | # extensions = |
| 18 | # (Alternatively, use a configuration file that has only | 18 | # (Alternatively, use a configuration file that has only |
| 19 | # X.509v3 extensions in its main [= default] section.) | 19 | # X.509v3 extensions in its main [= default] section.) |
| 20 | 20 | ||
| @@ -111,7 +111,7 @@ x509_extensions = v3_ca # The extentions to add to the self signed cert | |||
| 111 | # input_password = secret | 111 | # input_password = secret |
| 112 | # output_password = secret | 112 | # output_password = secret |
| 113 | 113 | ||
| 114 | # This sets a mask for permitted string types. There are several options. | 114 | # This sets a mask for permitted string types. There are several options. |
| 115 | # default: PrintableString, T61String, BMPString. | 115 | # default: PrintableString, T61String, BMPString. |
| 116 | # pkix : PrintableString, BMPString (PKIX recommendation before 2004) | 116 | # pkix : PrintableString, BMPString (PKIX recommendation before 2004) |
| 117 | # utf8only: only UTF8Strings (PKIX recommendation after 2004). | 117 | # utf8only: only UTF8Strings (PKIX recommendation after 2004). |
diff --git a/src/lib/libssl/src/apps/apps.c b/src/lib/libssl/src/apps/apps.c index fdbd436acc..051f6f80a6 100644 --- a/src/lib/libssl/src/apps/apps.c +++ b/src/lib/libssl/src/apps/apps.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: apps.c,v 1.66 2014/07/13 16:03:09 beck Exp $ */ | 1 | /* $OpenBSD: apps.c,v 1.67 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1800,7 +1800,7 @@ parse_name(char *subject, long chtype, int multirdn) | |||
| 1800 | int *mval; | 1800 | int *mval; |
| 1801 | 1801 | ||
| 1802 | /* | 1802 | /* |
| 1803 | * Buffer to copy the types and values into. Due to escaping the | 1803 | * Buffer to copy the types and values into. Due to escaping the |
| 1804 | * copy can only become shorter. | 1804 | * copy can only become shorter. |
| 1805 | */ | 1805 | */ |
| 1806 | buflen = strlen(subject) + 1; | 1806 | buflen = strlen(subject) + 1; |
diff --git a/src/lib/libssl/src/apps/asn1pars.c b/src/lib/libssl/src/apps/asn1pars.c index 1cedb6ad00..6df27cd6d0 100644 --- a/src/lib/libssl/src/apps/asn1pars.c +++ b/src/lib/libssl/src/apps/asn1pars.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1pars.c,v 1.26 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: asn1pars.c,v 1.27 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -343,7 +343,7 @@ end: | |||
| 343 | if (osk != NULL) | 343 | if (osk != NULL) |
| 344 | sk_OPENSSL_STRING_free(osk); | 344 | sk_OPENSSL_STRING_free(osk); |
| 345 | OBJ_cleanup(); | 345 | OBJ_cleanup(); |
| 346 | 346 | ||
| 347 | return (ret); | 347 | return (ret); |
| 348 | } | 348 | } |
| 349 | 349 | ||
diff --git a/src/lib/libssl/src/apps/ca.c b/src/lib/libssl/src/apps/ca.c index ae711a2e07..06d0c37c52 100644 --- a/src/lib/libssl/src/apps/ca.c +++ b/src/lib/libssl/src/apps/ca.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ca.c,v 1.63 2014/07/13 16:03:09 beck Exp $ */ | 1 | /* $OpenBSD: ca.c,v 1.64 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1369,7 +1369,7 @@ err: | |||
| 1369 | NCONF_free(conf); | 1369 | NCONF_free(conf); |
| 1370 | NCONF_free(extconf); | 1370 | NCONF_free(extconf); |
| 1371 | OBJ_cleanup(); | 1371 | OBJ_cleanup(); |
| 1372 | 1372 | ||
| 1373 | return (ret); | 1373 | return (ret); |
| 1374 | } | 1374 | } |
| 1375 | 1375 | ||
diff --git a/src/lib/libssl/src/apps/ciphers.c b/src/lib/libssl/src/apps/ciphers.c index d63fca6c7a..4d594fbaf4 100644 --- a/src/lib/libssl/src/apps/ciphers.c +++ b/src/lib/libssl/src/apps/ciphers.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ciphers.c,v 1.25 2014/07/12 19:31:21 jsing Exp $ */ | 1 | /* $OpenBSD: ciphers.c,v 1.26 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -187,6 +187,6 @@ end: | |||
| 187 | SSL_free(ssl); | 187 | SSL_free(ssl); |
| 188 | if (STDout != NULL) | 188 | if (STDout != NULL) |
| 189 | BIO_free_all(STDout); | 189 | BIO_free_all(STDout); |
| 190 | 190 | ||
| 191 | return (ret); | 191 | return (ret); |
| 192 | } | 192 | } |
diff --git a/src/lib/libssl/src/apps/crl.c b/src/lib/libssl/src/apps/crl.c index 05fd0878a4..57c87b67b7 100644 --- a/src/lib/libssl/src/apps/crl.c +++ b/src/lib/libssl/src/apps/crl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crl.c,v 1.24 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: crl.c,v 1.25 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -371,7 +371,7 @@ end: | |||
| 371 | X509_STORE_CTX_cleanup(&ctx); | 371 | X509_STORE_CTX_cleanup(&ctx); |
| 372 | X509_STORE_free(store); | 372 | X509_STORE_free(store); |
| 373 | } | 373 | } |
| 374 | 374 | ||
| 375 | return (ret); | 375 | return (ret); |
| 376 | } | 376 | } |
| 377 | 377 | ||
diff --git a/src/lib/libssl/src/apps/crl2p7.c b/src/lib/libssl/src/apps/crl2p7.c index 137851bd8a..de638a7ce2 100644 --- a/src/lib/libssl/src/apps/crl2p7.c +++ b/src/lib/libssl/src/apps/crl2p7.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crl2p7.c,v 1.19 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: crl2p7.c,v 1.20 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -257,7 +257,7 @@ end: | |||
| 257 | if (crl != NULL) | 257 | if (crl != NULL) |
| 258 | X509_CRL_free(crl); | 258 | X509_CRL_free(crl); |
| 259 | 259 | ||
| 260 | 260 | ||
| 261 | return (ret); | 261 | return (ret); |
| 262 | } | 262 | } |
| 263 | 263 | ||
diff --git a/src/lib/libssl/src/apps/dgst.c b/src/lib/libssl/src/apps/dgst.c index f9693fce16..e19b959077 100644 --- a/src/lib/libssl/src/apps/dgst.c +++ b/src/lib/libssl/src/apps/dgst.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dgst.c,v 1.38 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: dgst.c,v 1.39 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -467,7 +467,7 @@ end: | |||
| 467 | free(sigbuf); | 467 | free(sigbuf); |
| 468 | if (bmd != NULL) | 468 | if (bmd != NULL) |
| 469 | BIO_free(bmd); | 469 | BIO_free(bmd); |
| 470 | 470 | ||
| 471 | return (err); | 471 | return (err); |
| 472 | } | 472 | } |
| 473 | 473 | ||
diff --git a/src/lib/libssl/src/apps/dh.c b/src/lib/libssl/src/apps/dh.c index 5687c3cf2a..1485dedb55 100644 --- a/src/lib/libssl/src/apps/dh.c +++ b/src/lib/libssl/src/apps/dh.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dh.c,v 1.24 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: dh.c,v 1.25 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -303,7 +303,7 @@ end: | |||
| 303 | BIO_free_all(out); | 303 | BIO_free_all(out); |
| 304 | if (dh != NULL) | 304 | if (dh != NULL) |
| 305 | DH_free(dh); | 305 | DH_free(dh); |
| 306 | 306 | ||
| 307 | return (ret); | 307 | return (ret); |
| 308 | } | 308 | } |
| 309 | #endif | 309 | #endif |
diff --git a/src/lib/libssl/src/apps/dhparam.c b/src/lib/libssl/src/apps/dhparam.c index b6b38f9b8f..23fb2a5789 100644 --- a/src/lib/libssl/src/apps/dhparam.c +++ b/src/lib/libssl/src/apps/dhparam.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dhparam.c,v 1.32 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: dhparam.c,v 1.33 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -447,7 +447,7 @@ end: | |||
| 447 | BIO_free_all(out); | 447 | BIO_free_all(out); |
| 448 | if (dh != NULL) | 448 | if (dh != NULL) |
| 449 | DH_free(dh); | 449 | DH_free(dh); |
| 450 | 450 | ||
| 451 | return (ret); | 451 | return (ret); |
| 452 | } | 452 | } |
| 453 | 453 | ||
diff --git a/src/lib/libssl/src/apps/dsa.c b/src/lib/libssl/src/apps/dsa.c index ab98c145a9..287ecc4cda 100644 --- a/src/lib/libssl/src/apps/dsa.c +++ b/src/lib/libssl/src/apps/dsa.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dsa.c,v 1.27 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: dsa.c,v 1.28 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -328,6 +328,6 @@ end: | |||
| 328 | DSA_free(dsa); | 328 | DSA_free(dsa); |
| 329 | free(passin); | 329 | free(passin); |
| 330 | free(passout); | 330 | free(passout); |
| 331 | 331 | ||
| 332 | return (ret); | 332 | return (ret); |
| 333 | } | 333 | } |
diff --git a/src/lib/libssl/src/apps/dsaparam.c b/src/lib/libssl/src/apps/dsaparam.c index 2322040a1e..5980da69b0 100644 --- a/src/lib/libssl/src/apps/dsaparam.c +++ b/src/lib/libssl/src/apps/dsaparam.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dsaparam.c,v 1.33 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: dsaparam.c,v 1.34 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -388,7 +388,7 @@ end: | |||
| 388 | BIO_free_all(out); | 388 | BIO_free_all(out); |
| 389 | if (dsa != NULL) | 389 | if (dsa != NULL) |
| 390 | DSA_free(dsa); | 390 | DSA_free(dsa); |
| 391 | 391 | ||
| 392 | return (ret); | 392 | return (ret); |
| 393 | } | 393 | } |
| 394 | 394 | ||
diff --git a/src/lib/libssl/src/apps/ec.c b/src/lib/libssl/src/apps/ec.c index 89e6f29350..e60fddf99e 100644 --- a/src/lib/libssl/src/apps/ec.c +++ b/src/lib/libssl/src/apps/ec.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec.c,v 1.15 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: ec.c,v 1.16 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -336,7 +336,7 @@ end: | |||
| 336 | EC_KEY_free(eckey); | 336 | EC_KEY_free(eckey); |
| 337 | free(passin); | 337 | free(passin); |
| 338 | free(passout); | 338 | free(passout); |
| 339 | 339 | ||
| 340 | return (ret); | 340 | return (ret); |
| 341 | } | 341 | } |
| 342 | #endif | 342 | #endif |
diff --git a/src/lib/libssl/src/apps/ecparam.c b/src/lib/libssl/src/apps/ecparam.c index c7d4647852..e8e843ed20 100644 --- a/src/lib/libssl/src/apps/ecparam.c +++ b/src/lib/libssl/src/apps/ecparam.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ecparam.c,v 1.22 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: ecparam.c,v 1.23 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -115,7 +115,7 @@ static int ecparam_print_var(BIO *, BIGNUM *, const char *, int, unsigned char * | |||
| 115 | 115 | ||
| 116 | int ecparam_main(int, char **); | 116 | int ecparam_main(int, char **); |
| 117 | 117 | ||
| 118 | int | 118 | int |
| 119 | ecparam_main(int argc, char **argv) | 119 | ecparam_main(int argc, char **argv) |
| 120 | { | 120 | { |
| 121 | EC_GROUP *group = NULL; | 121 | EC_GROUP *group = NULL; |
| @@ -584,11 +584,11 @@ end: | |||
| 584 | BIO_free_all(out); | 584 | BIO_free_all(out); |
| 585 | if (group != NULL) | 585 | if (group != NULL) |
| 586 | EC_GROUP_free(group); | 586 | EC_GROUP_free(group); |
| 587 | 587 | ||
| 588 | return (ret); | 588 | return (ret); |
| 589 | } | 589 | } |
| 590 | 590 | ||
| 591 | static int | 591 | static int |
| 592 | ecparam_print_var(BIO * out, BIGNUM * in, const char *var, | 592 | ecparam_print_var(BIO * out, BIGNUM * in, const char *var, |
| 593 | int len, unsigned char *buffer) | 593 | int len, unsigned char *buffer) |
| 594 | { | 594 | { |
diff --git a/src/lib/libssl/src/apps/enc.c b/src/lib/libssl/src/apps/enc.c index 6b3aea554f..3464290918 100644 --- a/src/lib/libssl/src/apps/enc.c +++ b/src/lib/libssl/src/apps/enc.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: enc.c,v 1.37 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: enc.c,v 1.38 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -78,7 +78,7 @@ int set_hex(char *in, unsigned char *out, int size); | |||
| 78 | #define BSIZE (8*1024) | 78 | #define BSIZE (8*1024) |
| 79 | #define PROG enc_main | 79 | #define PROG enc_main |
| 80 | 80 | ||
| 81 | static void | 81 | static void |
| 82 | show_ciphers(const OBJ_NAME * name, void *bio_) | 82 | show_ciphers(const OBJ_NAME * name, void *bio_) |
| 83 | { | 83 | { |
| 84 | BIO *bio = bio_; | 84 | BIO *bio = bio_; |
| @@ -97,7 +97,7 @@ show_ciphers(const OBJ_NAME * name, void *bio_) | |||
| 97 | 97 | ||
| 98 | int enc_main(int, char **); | 98 | int enc_main(int, char **); |
| 99 | 99 | ||
| 100 | int | 100 | int |
| 101 | enc_main(int argc, char **argv) | 101 | enc_main(int argc, char **argv) |
| 102 | { | 102 | { |
| 103 | static const char magic[] = "Salted__"; | 103 | static const char magic[] = "Salted__"; |
| @@ -613,11 +613,11 @@ end: | |||
| 613 | BIO_free(bzl); | 613 | BIO_free(bzl); |
| 614 | #endif | 614 | #endif |
| 615 | free(pass); | 615 | free(pass); |
| 616 | 616 | ||
| 617 | return (ret); | 617 | return (ret); |
| 618 | } | 618 | } |
| 619 | 619 | ||
| 620 | int | 620 | int |
| 621 | set_hex(char *in, unsigned char *out, int size) | 621 | set_hex(char *in, unsigned char *out, int size) |
| 622 | { | 622 | { |
| 623 | int i, n; | 623 | int i, n; |
diff --git a/src/lib/libssl/src/apps/engine.c b/src/lib/libssl/src/apps/engine.c index 90404b5749..4b33ee45ce 100644 --- a/src/lib/libssl/src/apps/engine.c +++ b/src/lib/libssl/src/apps/engine.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: engine.c,v 1.26 2014/07/12 19:31:21 jsing Exp $ */ | 1 | /* $OpenBSD: engine.c,v 1.27 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Richard Levitte <richard@levitte.org> for the OpenSSL | 2 | /* Written by Richard Levitte <richard@levitte.org> for the OpenSSL |
| 3 | * project 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -87,13 +87,13 @@ static const char *engine_usage[] = { | |||
| 87 | NULL | 87 | NULL |
| 88 | }; | 88 | }; |
| 89 | 89 | ||
| 90 | static void | 90 | static void |
| 91 | identity(char *ptr) | 91 | identity(char *ptr) |
| 92 | { | 92 | { |
| 93 | return; | 93 | return; |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | static int | 96 | static int |
| 97 | append_buf(char **buf, const char *s, int *size, int step) | 97 | append_buf(char **buf, const char *s, int *size, int step) |
| 98 | { | 98 | { |
| 99 | int l = strlen(s); | 99 | int l = strlen(s); |
| @@ -122,7 +122,7 @@ append_buf(char **buf, const char *s, int *size, int step) | |||
| 122 | return 1; | 122 | return 1; |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | static int | 125 | static int |
| 126 | util_flags(BIO * bio_out, unsigned int flags, const char *indent) | 126 | util_flags(BIO * bio_out, unsigned int flags, const char *indent) |
| 127 | { | 127 | { |
| 128 | int started = 0, err = 0; | 128 | int started = 0, err = 0; |
| @@ -181,7 +181,7 @@ util_flags(BIO * bio_out, unsigned int flags, const char *indent) | |||
| 181 | return 1; | 181 | return 1; |
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | static int | 184 | static int |
| 185 | util_verbose(ENGINE * e, int verbose, BIO * bio_out, const char *indent) | 185 | util_verbose(ENGINE * e, int verbose, BIO * bio_out, const char *indent) |
| 186 | { | 186 | { |
| 187 | static const int line_wrap = 78; | 187 | static const int line_wrap = 78; |
| @@ -277,7 +277,7 @@ err: | |||
| 277 | return ret; | 277 | return ret; |
| 278 | } | 278 | } |
| 279 | 279 | ||
| 280 | static void | 280 | static void |
| 281 | util_do_cmds(ENGINE * e, STACK_OF(OPENSSL_STRING) * cmds, | 281 | util_do_cmds(ENGINE * e, STACK_OF(OPENSSL_STRING) * cmds, |
| 282 | BIO * bio_out, const char *indent) | 282 | BIO * bio_out, const char *indent) |
| 283 | { | 283 | { |
| @@ -319,7 +319,7 @@ util_do_cmds(ENGINE * e, STACK_OF(OPENSSL_STRING) * cmds, | |||
| 319 | 319 | ||
| 320 | int engine_main(int, char **); | 320 | int engine_main(int, char **); |
| 321 | 321 | ||
| 322 | int | 322 | int |
| 323 | engine_main(int argc, char **argv) | 323 | engine_main(int argc, char **argv) |
| 324 | { | 324 | { |
| 325 | int ret = 1, i; | 325 | int ret = 1, i; |
| @@ -488,7 +488,7 @@ end: | |||
| 488 | sk_OPENSSL_STRING_pop_free(post_cmds, identity); | 488 | sk_OPENSSL_STRING_pop_free(post_cmds, identity); |
| 489 | if (bio_out != NULL) | 489 | if (bio_out != NULL) |
| 490 | BIO_free_all(bio_out); | 490 | BIO_free_all(bio_out); |
| 491 | 491 | ||
| 492 | return (ret); | 492 | return (ret); |
| 493 | } | 493 | } |
| 494 | #endif | 494 | #endif |
diff --git a/src/lib/libssl/src/apps/errstr.c b/src/lib/libssl/src/apps/errstr.c index fd81818490..2f4087d122 100644 --- a/src/lib/libssl/src/apps/errstr.c +++ b/src/lib/libssl/src/apps/errstr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: errstr.c,v 1.18 2014/07/12 19:31:21 jsing Exp $ */ | 1 | /* $OpenBSD: errstr.c,v 1.19 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -103,6 +103,6 @@ errstr_main(int argc, char **argv) | |||
| 103 | ret++; | 103 | ret++; |
| 104 | } | 104 | } |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | return (ret); | 107 | return (ret); |
| 108 | } | 108 | } |
diff --git a/src/lib/libssl/src/apps/gendh.c b/src/lib/libssl/src/apps/gendh.c index 5e7e44d798..2cce6cf50b 100644 --- a/src/lib/libssl/src/apps/gendh.c +++ b/src/lib/libssl/src/apps/gendh.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gendh.c,v 1.27 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: gendh.c,v 1.28 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -180,7 +180,7 @@ end: | |||
| 180 | BIO_free_all(out); | 180 | BIO_free_all(out); |
| 181 | if (dh != NULL) | 181 | if (dh != NULL) |
| 182 | DH_free(dh); | 182 | DH_free(dh); |
| 183 | 183 | ||
| 184 | return (ret); | 184 | return (ret); |
| 185 | } | 185 | } |
| 186 | 186 | ||
diff --git a/src/lib/libssl/src/apps/gendsa.c b/src/lib/libssl/src/apps/gendsa.c index 485462c292..919b40af83 100644 --- a/src/lib/libssl/src/apps/gendsa.c +++ b/src/lib/libssl/src/apps/gendsa.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gendsa.c,v 1.29 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: gendsa.c,v 1.30 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -226,6 +226,6 @@ end: | |||
| 226 | if (dsa != NULL) | 226 | if (dsa != NULL) |
| 227 | DSA_free(dsa); | 227 | DSA_free(dsa); |
| 228 | free(passout); | 228 | free(passout); |
| 229 | 229 | ||
| 230 | return (ret); | 230 | return (ret); |
| 231 | } | 231 | } |
diff --git a/src/lib/libssl/src/apps/genpkey.c b/src/lib/libssl/src/apps/genpkey.c index d386a87cb2..23e32e49f0 100644 --- a/src/lib/libssl/src/apps/genpkey.c +++ b/src/lib/libssl/src/apps/genpkey.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: genpkey.c,v 1.12 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: genpkey.c,v 1.13 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006 | 3 | * project 2006 |
| 4 | */ | 4 | */ |
| @@ -69,7 +69,7 @@ | |||
| 69 | #include <openssl/engine.h> | 69 | #include <openssl/engine.h> |
| 70 | #endif | 70 | #endif |
| 71 | 71 | ||
| 72 | static int | 72 | static int |
| 73 | init_keygen_file(BIO * err, EVP_PKEY_CTX ** pctx, const char *file, | 73 | init_keygen_file(BIO * err, EVP_PKEY_CTX ** pctx, const char *file, |
| 74 | ENGINE * e); | 74 | ENGINE * e); |
| 75 | static int genpkey_cb(EVP_PKEY_CTX * ctx); | 75 | static int genpkey_cb(EVP_PKEY_CTX * ctx); |
diff --git a/src/lib/libssl/src/apps/genrsa.c b/src/lib/libssl/src/apps/genrsa.c index dba1d8ccad..9115a0b3a8 100644 --- a/src/lib/libssl/src/apps/genrsa.c +++ b/src/lib/libssl/src/apps/genrsa.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: genrsa.c,v 1.36 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: genrsa.c,v 1.37 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -263,7 +263,7 @@ err: | |||
| 263 | free(passout); | 263 | free(passout); |
| 264 | if (ret != 0) | 264 | if (ret != 0) |
| 265 | ERR_print_errors(bio_err); | 265 | ERR_print_errors(bio_err); |
| 266 | 266 | ||
| 267 | return (ret); | 267 | return (ret); |
| 268 | } | 268 | } |
| 269 | 269 | ||
diff --git a/src/lib/libssl/src/apps/nseq.c b/src/lib/libssl/src/apps/nseq.c index b830ced719..154b6a5685 100644 --- a/src/lib/libssl/src/apps/nseq.c +++ b/src/lib/libssl/src/apps/nseq.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: nseq.c,v 1.15 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: nseq.c,v 1.16 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -66,7 +66,7 @@ | |||
| 66 | 66 | ||
| 67 | int nseq_main(int, char **); | 67 | int nseq_main(int, char **); |
| 68 | 68 | ||
| 69 | int | 69 | int |
| 70 | nseq_main(int argc, char **argv) | 70 | nseq_main(int argc, char **argv) |
| 71 | { | 71 | { |
| 72 | char **args, *infile = NULL, *outfile = NULL; | 72 | char **args, *infile = NULL, *outfile = NULL; |
diff --git a/src/lib/libssl/src/apps/openssl.cnf b/src/lib/libssl/src/apps/openssl.cnf index 7250aacf2c..ed4bde52e8 100644 --- a/src/lib/libssl/src/apps/openssl.cnf +++ b/src/lib/libssl/src/apps/openssl.cnf | |||
| @@ -14,7 +14,7 @@ oid_section = new_oids | |||
| 14 | # To use this configuration file with the "-extfile" option of the | 14 | # To use this configuration file with the "-extfile" option of the |
| 15 | # "openssl x509" utility, name here the section containing the | 15 | # "openssl x509" utility, name here the section containing the |
| 16 | # X.509v3 extensions to use: | 16 | # X.509v3 extensions to use: |
| 17 | # extensions = | 17 | # extensions = |
| 18 | # (Alternatively, use a configuration file that has only | 18 | # (Alternatively, use a configuration file that has only |
| 19 | # X.509v3 extensions in its main [= default] section.) | 19 | # X.509v3 extensions in its main [= default] section.) |
| 20 | 20 | ||
| @@ -111,7 +111,7 @@ x509_extensions = v3_ca # The extentions to add to the self signed cert | |||
| 111 | # input_password = secret | 111 | # input_password = secret |
| 112 | # output_password = secret | 112 | # output_password = secret |
| 113 | 113 | ||
| 114 | # This sets a mask for permitted string types. There are several options. | 114 | # This sets a mask for permitted string types. There are several options. |
| 115 | # default: PrintableString, T61String, BMPString. | 115 | # default: PrintableString, T61String, BMPString. |
| 116 | # pkix : PrintableString, BMPString (PKIX recommendation before 2004) | 116 | # pkix : PrintableString, BMPString (PKIX recommendation before 2004) |
| 117 | # utf8only: only UTF8Strings (PKIX recommendation after 2004). | 117 | # utf8only: only UTF8Strings (PKIX recommendation after 2004). |
diff --git a/src/lib/libssl/src/apps/passwd.c b/src/lib/libssl/src/apps/passwd.c index bc77b49540..b9a74bbd0c 100644 --- a/src/lib/libssl/src/apps/passwd.c +++ b/src/lib/libssl/src/apps/passwd.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: passwd.c,v 1.22 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: passwd.c,v 1.23 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | 2 | ||
| 3 | #if defined OPENSSL_NO_MD5 | 3 | #if defined OPENSSL_NO_MD5 |
| 4 | #define NO_MD5CRYPT_1 | 4 | #define NO_MD5CRYPT_1 |
| @@ -36,7 +36,7 @@ static unsigned const char cov_2char[64] = { | |||
| 36 | 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A | 36 | 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A |
| 37 | }; | 37 | }; |
| 38 | 38 | ||
| 39 | static int | 39 | static int |
| 40 | do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, | 40 | do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, |
| 41 | char *passwd, BIO * out, int quiet, int table, int reverse, | 41 | char *passwd, BIO * out, int quiet, int table, int reverse, |
| 42 | size_t pw_maxlen, int usecrypt, int use1, int useapr1); | 42 | size_t pw_maxlen, int usecrypt, int use1, int useapr1); |
| @@ -55,7 +55,7 @@ do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, | |||
| 55 | 55 | ||
| 56 | int passwd_main(int, char **); | 56 | int passwd_main(int, char **); |
| 57 | 57 | ||
| 58 | int | 58 | int |
| 59 | passwd_main(int argc, char **argv) | 59 | passwd_main(int argc, char **argv) |
| 60 | { | 60 | { |
| 61 | int ret = 1; | 61 | int ret = 1; |
| @@ -246,7 +246,7 @@ err: | |||
| 246 | BIO_free(in); | 246 | BIO_free(in); |
| 247 | if (out) | 247 | if (out) |
| 248 | BIO_free_all(out); | 248 | BIO_free_all(out); |
| 249 | 249 | ||
| 250 | return (ret); | 250 | return (ret); |
| 251 | } | 251 | } |
| 252 | 252 | ||
| @@ -366,7 +366,7 @@ md5crypt(const char *passwd, const char *magic, const char *salt) | |||
| 366 | #endif | 366 | #endif |
| 367 | 367 | ||
| 368 | 368 | ||
| 369 | static int | 369 | static int |
| 370 | do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, | 370 | do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, |
| 371 | char *passwd, BIO * out, int quiet, int table, int reverse, | 371 | char *passwd, BIO * out, int quiet, int table, int reverse, |
| 372 | size_t pw_maxlen, int usecrypt, int use1, int useapr1) | 372 | size_t pw_maxlen, int usecrypt, int use1, int useapr1) |
| @@ -449,7 +449,7 @@ err: | |||
| 449 | } | 449 | } |
| 450 | #else | 450 | #else |
| 451 | 451 | ||
| 452 | int | 452 | int |
| 453 | passwd_main(int argc, char **argv) | 453 | passwd_main(int argc, char **argv) |
| 454 | { | 454 | { |
| 455 | fputs("Program not available.\n", stderr) | 455 | fputs("Program not available.\n", stderr) |
diff --git a/src/lib/libssl/src/apps/pkcs12.c b/src/lib/libssl/src/apps/pkcs12.c index 35a5dd5bcc..9899fa6950 100644 --- a/src/lib/libssl/src/apps/pkcs12.c +++ b/src/lib/libssl/src/apps/pkcs12.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pkcs12.c,v 1.37 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: pkcs12.c,v 1.38 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project. | 3 | * project. |
| 4 | */ | 4 | */ |
| @@ -610,11 +610,11 @@ end: | |||
| 610 | sk_OPENSSL_STRING_free(canames); | 610 | sk_OPENSSL_STRING_free(canames); |
| 611 | free(passin); | 611 | free(passin); |
| 612 | free(passout); | 612 | free(passout); |
| 613 | 613 | ||
| 614 | return (ret); | 614 | return (ret); |
| 615 | } | 615 | } |
| 616 | 616 | ||
| 617 | int | 617 | int |
| 618 | dump_certs_keys_p12(BIO * out, PKCS12 * p12, char *pass, | 618 | dump_certs_keys_p12(BIO * out, PKCS12 * p12, char *pass, |
| 619 | int passlen, int options, char *pempass) | 619 | int passlen, int options, char *pempass) |
| 620 | { | 620 | { |
| @@ -661,7 +661,7 @@ err: | |||
| 661 | return ret; | 661 | return ret; |
| 662 | } | 662 | } |
| 663 | 663 | ||
| 664 | int | 664 | int |
| 665 | dump_certs_pkeys_bags(BIO * out, STACK_OF(PKCS12_SAFEBAG) * bags, | 665 | dump_certs_pkeys_bags(BIO * out, STACK_OF(PKCS12_SAFEBAG) * bags, |
| 666 | char *pass, int passlen, int options, char *pempass) | 666 | char *pass, int passlen, int options, char *pempass) |
| 667 | { | 667 | { |
| @@ -676,7 +676,7 @@ dump_certs_pkeys_bags(BIO * out, STACK_OF(PKCS12_SAFEBAG) * bags, | |||
| 676 | return 1; | 676 | return 1; |
| 677 | } | 677 | } |
| 678 | 678 | ||
| 679 | int | 679 | int |
| 680 | dump_certs_pkeys_bag(BIO * out, PKCS12_SAFEBAG * bag, char *pass, | 680 | dump_certs_pkeys_bag(BIO * out, PKCS12_SAFEBAG * bag, char *pass, |
| 681 | int passlen, int options, char *pempass) | 681 | int passlen, int options, char *pempass) |
| 682 | { | 682 | { |
| @@ -760,7 +760,7 @@ dump_certs_pkeys_bag(BIO * out, PKCS12_SAFEBAG * bag, char *pass, | |||
| 760 | 760 | ||
| 761 | /* Hope this is OK .... */ | 761 | /* Hope this is OK .... */ |
| 762 | 762 | ||
| 763 | int | 763 | int |
| 764 | get_cert_chain(X509 * cert, X509_STORE * store, STACK_OF(X509) ** chain) | 764 | get_cert_chain(X509 * cert, X509_STORE * store, STACK_OF(X509) ** chain) |
| 765 | { | 765 | { |
| 766 | X509_STORE_CTX store_ctx; | 766 | X509_STORE_CTX store_ctx; |
| @@ -792,7 +792,7 @@ err: | |||
| 792 | return i; | 792 | return i; |
| 793 | } | 793 | } |
| 794 | 794 | ||
| 795 | int | 795 | int |
| 796 | alg_print(BIO * x, X509_ALGOR * alg) | 796 | alg_print(BIO * x, X509_ALGOR * alg) |
| 797 | { | 797 | { |
| 798 | PBEPARAM *pbe; | 798 | PBEPARAM *pbe; |
| @@ -810,7 +810,7 @@ alg_print(BIO * x, X509_ALGOR * alg) | |||
| 810 | 810 | ||
| 811 | /* Load all certificates from a given file */ | 811 | /* Load all certificates from a given file */ |
| 812 | 812 | ||
| 813 | int | 813 | int |
| 814 | cert_load(BIO * in, STACK_OF(X509) * sk) | 814 | cert_load(BIO * in, STACK_OF(X509) * sk) |
| 815 | { | 815 | { |
| 816 | int ret; | 816 | int ret; |
| @@ -827,7 +827,7 @@ cert_load(BIO * in, STACK_OF(X509) * sk) | |||
| 827 | 827 | ||
| 828 | /* Generalised attribute print: handle PKCS#8 and bag attributes */ | 828 | /* Generalised attribute print: handle PKCS#8 and bag attributes */ |
| 829 | 829 | ||
| 830 | int | 830 | int |
| 831 | print_attribs(BIO * out, STACK_OF(X509_ATTRIBUTE) * attrlst, const char *name) | 831 | print_attribs(BIO * out, STACK_OF(X509_ATTRIBUTE) * attrlst, const char *name) |
| 832 | { | 832 | { |
| 833 | X509_ATTRIBUTE *attr; | 833 | X509_ATTRIBUTE *attr; |
| @@ -885,7 +885,7 @@ print_attribs(BIO * out, STACK_OF(X509_ATTRIBUTE) * attrlst, const char *name) | |||
| 885 | return 1; | 885 | return 1; |
| 886 | } | 886 | } |
| 887 | 887 | ||
| 888 | void | 888 | void |
| 889 | hex_prin(BIO * out, unsigned char *buf, int len) | 889 | hex_prin(BIO * out, unsigned char *buf, int len) |
| 890 | { | 890 | { |
| 891 | int i; | 891 | int i; |
| @@ -893,7 +893,7 @@ hex_prin(BIO * out, unsigned char *buf, int len) | |||
| 893 | BIO_printf(out, "%02X ", buf[i]); | 893 | BIO_printf(out, "%02X ", buf[i]); |
| 894 | } | 894 | } |
| 895 | 895 | ||
| 896 | static int | 896 | static int |
| 897 | set_pbe(BIO * err, int *ppbe, const char *str) | 897 | set_pbe(BIO * err, int *ppbe, const char *str) |
| 898 | { | 898 | { |
| 899 | if (!str) | 899 | if (!str) |
diff --git a/src/lib/libssl/src/apps/pkcs7.c b/src/lib/libssl/src/apps/pkcs7.c index 2e3377537b..34b9d512c4 100644 --- a/src/lib/libssl/src/apps/pkcs7.c +++ b/src/lib/libssl/src/apps/pkcs7.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pkcs7.c,v 1.20 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: pkcs7.c,v 1.21 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -79,7 +79,7 @@ | |||
| 79 | 79 | ||
| 80 | int pkcs7_main(int, char **); | 80 | int pkcs7_main(int, char **); |
| 81 | 81 | ||
| 82 | int | 82 | int |
| 83 | pkcs7_main(int argc, char **argv) | 83 | pkcs7_main(int argc, char **argv) |
| 84 | { | 84 | { |
| 85 | PKCS7 *p7 = NULL; | 85 | PKCS7 *p7 = NULL; |
| @@ -279,6 +279,6 @@ end: | |||
| 279 | BIO_free(in); | 279 | BIO_free(in); |
| 280 | if (out != NULL) | 280 | if (out != NULL) |
| 281 | BIO_free_all(out); | 281 | BIO_free_all(out); |
| 282 | 282 | ||
| 283 | return (ret); | 283 | return (ret); |
| 284 | } | 284 | } |
diff --git a/src/lib/libssl/src/apps/pkcs8.c b/src/lib/libssl/src/apps/pkcs8.c index f33cd89ab1..9b0b15baac 100644 --- a/src/lib/libssl/src/apps/pkcs8.c +++ b/src/lib/libssl/src/apps/pkcs8.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pkcs8.c,v 1.20 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: pkcs8.c,v 1.21 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 1999-2004. | 3 | * project 1999-2004. |
| 4 | */ | 4 | */ |
| @@ -68,7 +68,7 @@ | |||
| 68 | 68 | ||
| 69 | int pkcs8_main(int, char **); | 69 | int pkcs8_main(int, char **); |
| 70 | 70 | ||
| 71 | int | 71 | int |
| 72 | pkcs8_main(int argc, char **argv) | 72 | pkcs8_main(int argc, char **argv) |
| 73 | { | 73 | { |
| 74 | ENGINE *e = NULL; | 74 | ENGINE *e = NULL; |
diff --git a/src/lib/libssl/src/apps/pkey.c b/src/lib/libssl/src/apps/pkey.c index 1769f62b0b..a419e3007f 100644 --- a/src/lib/libssl/src/apps/pkey.c +++ b/src/lib/libssl/src/apps/pkey.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pkey.c,v 1.10 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: pkey.c,v 1.11 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006 | 3 | * project 2006 |
| 4 | */ | 4 | */ |
| @@ -67,7 +67,7 @@ | |||
| 67 | 67 | ||
| 68 | int pkey_main(int, char **); | 68 | int pkey_main(int, char **); |
| 69 | 69 | ||
| 70 | int | 70 | int |
| 71 | pkey_main(int argc, char **argv) | 71 | pkey_main(int argc, char **argv) |
| 72 | { | 72 | { |
| 73 | ENGINE *e = NULL; | 73 | ENGINE *e = NULL; |
diff --git a/src/lib/libssl/src/apps/pkeyparam.c b/src/lib/libssl/src/apps/pkeyparam.c index 6b1ce3d482..3ae73efb68 100644 --- a/src/lib/libssl/src/apps/pkeyparam.c +++ b/src/lib/libssl/src/apps/pkeyparam.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pkeyparam.c,v 1.8 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: pkeyparam.c,v 1.9 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006 | 3 | * project 2006 |
| 4 | */ | 4 | */ |
| @@ -67,7 +67,7 @@ | |||
| 67 | 67 | ||
| 68 | int pkeyparam_main(int, char **); | 68 | int pkeyparam_main(int, char **); |
| 69 | 69 | ||
| 70 | int | 70 | int |
| 71 | pkeyparam_main(int argc, char **argv) | 71 | pkeyparam_main(int argc, char **argv) |
| 72 | { | 72 | { |
| 73 | char **args, *infile = NULL, *outfile = NULL; | 73 | char **args, *infile = NULL, *outfile = NULL; |
diff --git a/src/lib/libssl/src/apps/pkeyutl.c b/src/lib/libssl/src/apps/pkeyutl.c index fa1a663928..df173f4374 100644 --- a/src/lib/libssl/src/apps/pkeyutl.c +++ b/src/lib/libssl/src/apps/pkeyutl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pkeyutl.c,v 1.13 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: pkeyutl.c,v 1.14 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -83,7 +83,7 @@ static int do_keyop(EVP_PKEY_CTX * ctx, int pkey_op, | |||
| 83 | 83 | ||
| 84 | int pkeyutl_main(int argc, char **); | 84 | int pkeyutl_main(int argc, char **); |
| 85 | 85 | ||
| 86 | int | 86 | int |
| 87 | pkeyutl_main(int argc, char **argv) | 87 | pkeyutl_main(int argc, char **argv) |
| 88 | { | 88 | { |
| 89 | BIO *in = NULL, *out = NULL; | 89 | BIO *in = NULL, *out = NULL; |
| @@ -327,7 +327,7 @@ end: | |||
| 327 | return ret; | 327 | return ret; |
| 328 | } | 328 | } |
| 329 | 329 | ||
| 330 | static void | 330 | static void |
| 331 | usage() | 331 | usage() |
| 332 | { | 332 | { |
| 333 | BIO_printf(bio_err, "Usage: pkeyutl [options]\n"); | 333 | BIO_printf(bio_err, "Usage: pkeyutl [options]\n"); |
| @@ -446,7 +446,7 @@ end: | |||
| 446 | 446 | ||
| 447 | } | 447 | } |
| 448 | 448 | ||
| 449 | static int | 449 | static int |
| 450 | setup_peer(BIO * err, EVP_PKEY_CTX * ctx, int peerform, | 450 | setup_peer(BIO * err, EVP_PKEY_CTX * ctx, int peerform, |
| 451 | const char *file) | 451 | const char *file) |
| 452 | { | 452 | { |
| @@ -471,7 +471,7 @@ setup_peer(BIO * err, EVP_PKEY_CTX * ctx, int peerform, | |||
| 471 | return ret; | 471 | return ret; |
| 472 | } | 472 | } |
| 473 | 473 | ||
| 474 | static int | 474 | static int |
| 475 | do_keyop(EVP_PKEY_CTX * ctx, int pkey_op, | 475 | do_keyop(EVP_PKEY_CTX * ctx, int pkey_op, |
| 476 | unsigned char *out, size_t * poutlen, | 476 | unsigned char *out, size_t * poutlen, |
| 477 | unsigned char *in, size_t inlen) | 477 | unsigned char *in, size_t inlen) |
diff --git a/src/lib/libssl/src/apps/prime.c b/src/lib/libssl/src/apps/prime.c index 9918db06c7..710939f08d 100644 --- a/src/lib/libssl/src/apps/prime.c +++ b/src/lib/libssl/src/apps/prime.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: prime.c,v 1.11 2014/06/28 04:39:41 deraadt Exp $ */ | 1 | /* $OpenBSD: prime.c,v 1.12 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -57,7 +57,7 @@ | |||
| 57 | 57 | ||
| 58 | int prime_main(int, char **); | 58 | int prime_main(int, char **); |
| 59 | 59 | ||
| 60 | int | 60 | int |
| 61 | prime_main(int argc, char **argv) | 61 | prime_main(int argc, char **argv) |
| 62 | { | 62 | { |
| 63 | int hex = 0; | 63 | int hex = 0; |
diff --git a/src/lib/libssl/src/apps/rand.c b/src/lib/libssl/src/apps/rand.c index f4a7c020fd..9d7aba4d86 100644 --- a/src/lib/libssl/src/apps/rand.c +++ b/src/lib/libssl/src/apps/rand.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rand.c,v 1.21 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: rand.c,v 1.22 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -71,7 +71,7 @@ | |||
| 71 | 71 | ||
| 72 | int rand_main(int, char **); | 72 | int rand_main(int, char **); |
| 73 | 73 | ||
| 74 | int | 74 | int |
| 75 | rand_main(int argc, char **argv) | 75 | rand_main(int argc, char **argv) |
| 76 | { | 76 | { |
| 77 | int i, r, ret = 1; | 77 | int i, r, ret = 1; |
| @@ -189,6 +189,6 @@ err: | |||
| 189 | ERR_print_errors(bio_err); | 189 | ERR_print_errors(bio_err); |
| 190 | if (out) | 190 | if (out) |
| 191 | BIO_free_all(out); | 191 | BIO_free_all(out); |
| 192 | 192 | ||
| 193 | return (ret); | 193 | return (ret); |
| 194 | } | 194 | } |
diff --git a/src/lib/libssl/src/apps/req.c b/src/lib/libssl/src/apps/req.c index 81a58ca54b..7c2ce58f88 100644 --- a/src/lib/libssl/src/apps/req.c +++ b/src/lib/libssl/src/apps/req.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: req.c,v 1.45 2014/07/09 21:02:35 tedu Exp $ */ | 1 | /* $OpenBSD: req.c,v 1.46 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -909,11 +909,11 @@ end: | |||
| 909 | if (passargout && passout) | 909 | if (passargout && passout) |
| 910 | free(passout); | 910 | free(passout); |
| 911 | OBJ_cleanup(); | 911 | OBJ_cleanup(); |
| 912 | 912 | ||
| 913 | return (ex); | 913 | return (ex); |
| 914 | } | 914 | } |
| 915 | 915 | ||
| 916 | static int | 916 | static int |
| 917 | make_REQ(X509_REQ * req, EVP_PKEY * pkey, char *subj, int multirdn, | 917 | make_REQ(X509_REQ * req, EVP_PKEY * pkey, char *subj, int multirdn, |
| 918 | int attribs, unsigned long chtype) | 918 | int attribs, unsigned long chtype) |
| 919 | { | 919 | { |
| @@ -978,7 +978,7 @@ err: | |||
| 978 | * subject is expected to be in the format /type0=value0/type1=value1/type2=... | 978 | * subject is expected to be in the format /type0=value0/type1=value1/type2=... |
| 979 | * where characters may be escaped by \ | 979 | * where characters may be escaped by \ |
| 980 | */ | 980 | */ |
| 981 | static int | 981 | static int |
| 982 | build_subject(X509_REQ * req, char *subject, unsigned long chtype, int multirdn) | 982 | build_subject(X509_REQ * req, char *subject, unsigned long chtype, int multirdn) |
| 983 | { | 983 | { |
| 984 | X509_NAME *n; | 984 | X509_NAME *n; |
| @@ -995,7 +995,7 @@ build_subject(X509_REQ * req, char *subject, unsigned long chtype, int multirdn) | |||
| 995 | } | 995 | } |
| 996 | 996 | ||
| 997 | 997 | ||
| 998 | static int | 998 | static int |
| 999 | prompt_info(X509_REQ * req, | 999 | prompt_info(X509_REQ * req, |
| 1000 | STACK_OF(CONF_VALUE) * dn_sk, char *dn_sect, | 1000 | STACK_OF(CONF_VALUE) * dn_sk, char *dn_sect, |
| 1001 | STACK_OF(CONF_VALUE) * attr_sk, char *attr_sect, int attribs, | 1001 | STACK_OF(CONF_VALUE) * attr_sk, char *attr_sect, int attribs, |
| @@ -1180,7 +1180,7 @@ start2: for (;;) { | |||
| 1180 | 1180 | ||
| 1181 | } | 1181 | } |
| 1182 | 1182 | ||
| 1183 | static int | 1183 | static int |
| 1184 | auto_info(X509_REQ * req, STACK_OF(CONF_VALUE) * dn_sk, | 1184 | auto_info(X509_REQ * req, STACK_OF(CONF_VALUE) * dn_sk, |
| 1185 | STACK_OF(CONF_VALUE) * attr_sk, int attribs, unsigned long chtype) | 1185 | STACK_OF(CONF_VALUE) * attr_sk, int attribs, unsigned long chtype) |
| 1186 | { | 1186 | { |
| @@ -1235,7 +1235,7 @@ auto_info(X509_REQ * req, STACK_OF(CONF_VALUE) * dn_sk, | |||
| 1235 | } | 1235 | } |
| 1236 | 1236 | ||
| 1237 | 1237 | ||
| 1238 | static int | 1238 | static int |
| 1239 | add_DN_object(X509_NAME * n, char *text, const char *def, char *value, | 1239 | add_DN_object(X509_NAME * n, char *text, const char *def, char *value, |
| 1240 | int nid, int n_min, int n_max, unsigned long chtype, int mval) | 1240 | int nid, int n_min, int n_max, unsigned long chtype, int mval) |
| 1241 | { | 1241 | { |
| @@ -1286,7 +1286,7 @@ err: | |||
| 1286 | return (ret); | 1286 | return (ret); |
| 1287 | } | 1287 | } |
| 1288 | 1288 | ||
| 1289 | static int | 1289 | static int |
| 1290 | add_attribute_object(X509_REQ * req, char *text, const char *def, | 1290 | add_attribute_object(X509_REQ * req, char *text, const char *def, |
| 1291 | char *value, int nid, int n_min, | 1291 | char *value, int nid, int n_min, |
| 1292 | int n_max, unsigned long chtype) | 1292 | int n_max, unsigned long chtype) |
| @@ -1343,7 +1343,7 @@ err: | |||
| 1343 | return (0); | 1343 | return (0); |
| 1344 | } | 1344 | } |
| 1345 | 1345 | ||
| 1346 | static int | 1346 | static int |
| 1347 | req_check_len(int len, int n_min, int n_max) | 1347 | req_check_len(int len, int n_min, int n_max) |
| 1348 | { | 1348 | { |
| 1349 | if ((n_min > 0) && (len < n_min)) { | 1349 | if ((n_min > 0) && (len < n_min)) { |
| @@ -1358,7 +1358,7 @@ req_check_len(int len, int n_min, int n_max) | |||
| 1358 | } | 1358 | } |
| 1359 | 1359 | ||
| 1360 | /* Check if the end of a string matches 'end' */ | 1360 | /* Check if the end of a string matches 'end' */ |
| 1361 | static int | 1361 | static int |
| 1362 | check_end(const char *str, const char *end) | 1362 | check_end(const char *str, const char *end) |
| 1363 | { | 1363 | { |
| 1364 | int elen, slen; | 1364 | int elen, slen; |
| @@ -1392,7 +1392,7 @@ set_keygen_ctx(BIO * err, const char *gstr, int *pkey_type, | |||
| 1392 | if (errstr) { | 1392 | if (errstr) { |
| 1393 | BIO_printf(err, "bad algorithm %s: %s\n", gstr, errstr); | 1393 | BIO_printf(err, "bad algorithm %s: %s\n", gstr, errstr); |
| 1394 | return NULL; | 1394 | return NULL; |
| 1395 | } | 1395 | } |
| 1396 | *pkeylen = keylen; | 1396 | *pkeylen = keylen; |
| 1397 | } else if (!strncmp(gstr, "param:", 6)) | 1397 | } else if (!strncmp(gstr, "param:", 6)) |
| 1398 | paramfile = gstr + 6; | 1398 | paramfile = gstr + 6; |
| @@ -1429,7 +1429,7 @@ set_keygen_ctx(BIO * err, const char *gstr, int *pkey_type, | |||
| 1429 | if (errstr) { | 1429 | if (errstr) { |
| 1430 | BIO_printf(err, "bad algorithm %s: %s\n", | 1430 | BIO_printf(err, "bad algorithm %s: %s\n", |
| 1431 | p + 1, errstr); | 1431 | p + 1, errstr); |
| 1432 | return NULL; | 1432 | return NULL; |
| 1433 | } | 1433 | } |
| 1434 | *pkeylen = keylen; | 1434 | *pkeylen = keylen; |
| 1435 | } else | 1435 | } else |
| @@ -1516,7 +1516,7 @@ set_keygen_ctx(BIO * err, const char *gstr, int *pkey_type, | |||
| 1516 | return gctx; | 1516 | return gctx; |
| 1517 | } | 1517 | } |
| 1518 | 1518 | ||
| 1519 | static int | 1519 | static int |
| 1520 | genpkey_cb(EVP_PKEY_CTX * ctx) | 1520 | genpkey_cb(EVP_PKEY_CTX * ctx) |
| 1521 | { | 1521 | { |
| 1522 | char c = '*'; | 1522 | char c = '*'; |
| @@ -1536,7 +1536,7 @@ genpkey_cb(EVP_PKEY_CTX * ctx) | |||
| 1536 | return 1; | 1536 | return 1; |
| 1537 | } | 1537 | } |
| 1538 | 1538 | ||
| 1539 | static int | 1539 | static int |
| 1540 | do_sign_init(BIO * err, EVP_MD_CTX * ctx, EVP_PKEY * pkey, | 1540 | do_sign_init(BIO * err, EVP_MD_CTX * ctx, EVP_PKEY * pkey, |
| 1541 | const EVP_MD * md, STACK_OF(OPENSSL_STRING) * sigopts) | 1541 | const EVP_MD * md, STACK_OF(OPENSSL_STRING) * sigopts) |
| 1542 | { | 1542 | { |
| @@ -1556,7 +1556,7 @@ do_sign_init(BIO * err, EVP_MD_CTX * ctx, EVP_PKEY * pkey, | |||
| 1556 | return 1; | 1556 | return 1; |
| 1557 | } | 1557 | } |
| 1558 | 1558 | ||
| 1559 | int | 1559 | int |
| 1560 | do_X509_sign(BIO * err, X509 * x, EVP_PKEY * pkey, const EVP_MD * md, | 1560 | do_X509_sign(BIO * err, X509 * x, EVP_PKEY * pkey, const EVP_MD * md, |
| 1561 | STACK_OF(OPENSSL_STRING) * sigopts) | 1561 | STACK_OF(OPENSSL_STRING) * sigopts) |
| 1562 | { | 1562 | { |
| @@ -1571,7 +1571,7 @@ do_X509_sign(BIO * err, X509 * x, EVP_PKEY * pkey, const EVP_MD * md, | |||
| 1571 | } | 1571 | } |
| 1572 | 1572 | ||
| 1573 | 1573 | ||
| 1574 | int | 1574 | int |
| 1575 | do_X509_REQ_sign(BIO * err, X509_REQ * x, EVP_PKEY * pkey, const EVP_MD * md, | 1575 | do_X509_REQ_sign(BIO * err, X509_REQ * x, EVP_PKEY * pkey, const EVP_MD * md, |
| 1576 | STACK_OF(OPENSSL_STRING) * sigopts) | 1576 | STACK_OF(OPENSSL_STRING) * sigopts) |
| 1577 | { | 1577 | { |
| @@ -1587,7 +1587,7 @@ do_X509_REQ_sign(BIO * err, X509_REQ * x, EVP_PKEY * pkey, const EVP_MD * md, | |||
| 1587 | 1587 | ||
| 1588 | 1588 | ||
| 1589 | 1589 | ||
| 1590 | int | 1590 | int |
| 1591 | do_X509_CRL_sign(BIO * err, X509_CRL * x, EVP_PKEY * pkey, const EVP_MD * md, | 1591 | do_X509_CRL_sign(BIO * err, X509_CRL * x, EVP_PKEY * pkey, const EVP_MD * md, |
| 1592 | STACK_OF(OPENSSL_STRING) * sigopts) | 1592 | STACK_OF(OPENSSL_STRING) * sigopts) |
| 1593 | { | 1593 | { |
diff --git a/src/lib/libssl/src/apps/rsa.c b/src/lib/libssl/src/apps/rsa.c index 798283755f..1bb78e94a9 100644 --- a/src/lib/libssl/src/apps/rsa.c +++ b/src/lib/libssl/src/apps/rsa.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa.c,v 1.26 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: rsa.c,v 1.27 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -97,7 +97,7 @@ | |||
| 97 | 97 | ||
| 98 | int rsa_main(int, char **); | 98 | int rsa_main(int, char **); |
| 99 | 99 | ||
| 100 | int | 100 | int |
| 101 | rsa_main(int argc, char **argv) | 101 | rsa_main(int argc, char **argv) |
| 102 | { | 102 | { |
| 103 | ENGINE *e = NULL; | 103 | ENGINE *e = NULL; |
| @@ -387,6 +387,6 @@ end: | |||
| 387 | RSA_free(rsa); | 387 | RSA_free(rsa); |
| 388 | free(passin); | 388 | free(passin); |
| 389 | free(passout); | 389 | free(passout); |
| 390 | 390 | ||
| 391 | return (ret); | 391 | return (ret); |
| 392 | } | 392 | } |
diff --git a/src/lib/libssl/src/apps/rsautl.c b/src/lib/libssl/src/apps/rsautl.c index 966b7fe75f..d961582fe4 100644 --- a/src/lib/libssl/src/apps/rsautl.c +++ b/src/lib/libssl/src/apps/rsautl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsautl.c,v 1.23 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: rsautl.c,v 1.24 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -80,7 +80,7 @@ static void usage(void); | |||
| 80 | 80 | ||
| 81 | int rsautl_main(int argc, char **); | 81 | int rsautl_main(int argc, char **); |
| 82 | 82 | ||
| 83 | int | 83 | int |
| 84 | rsautl_main(int argc, char **argv) | 84 | rsautl_main(int argc, char **argv) |
| 85 | { | 85 | { |
| 86 | ENGINE *e = NULL; | 86 | ENGINE *e = NULL; |
| @@ -313,7 +313,7 @@ end: | |||
| 313 | return ret; | 313 | return ret; |
| 314 | } | 314 | } |
| 315 | 315 | ||
| 316 | static void | 316 | static void |
| 317 | usage() | 317 | usage() |
| 318 | { | 318 | { |
| 319 | BIO_printf(bio_err, "Usage: rsautl [options]\n"); | 319 | BIO_printf(bio_err, "Usage: rsautl [options]\n"); |
diff --git a/src/lib/libssl/src/apps/s_client.c b/src/lib/libssl/src/apps/s_client.c index 355a66fd9b..de1669794b 100644 --- a/src/lib/libssl/src/apps/s_client.c +++ b/src/lib/libssl/src/apps/s_client.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s_client.c,v 1.68 2014/07/12 19:31:21 jsing Exp $ */ | 1 | /* $OpenBSD: s_client.c,v 1.69 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -199,7 +199,7 @@ static int c_quiet = 0; | |||
| 199 | static int c_ign_eof = 0; | 199 | static int c_ign_eof = 0; |
| 200 | 200 | ||
| 201 | 201 | ||
| 202 | static void | 202 | static void |
| 203 | sc_usage(void) | 203 | sc_usage(void) |
| 204 | { | 204 | { |
| 205 | BIO_printf(bio_err, "usage: s_client args\n"); | 205 | BIO_printf(bio_err, "usage: s_client args\n"); |
| @@ -276,7 +276,7 @@ typedef struct tlsextctx_st { | |||
| 276 | } tlsextctx; | 276 | } tlsextctx; |
| 277 | 277 | ||
| 278 | 278 | ||
| 279 | static int | 279 | static int |
| 280 | ssl_servername_cb(SSL * s, int *ad, void *arg) | 280 | ssl_servername_cb(SSL * s, int *ad, void *arg) |
| 281 | { | 281 | { |
| 282 | tlsextctx *p = (tlsextctx *) arg; | 282 | tlsextctx *p = (tlsextctx *) arg; |
| @@ -303,7 +303,7 @@ typedef struct tlsextnextprotoctx_st { | |||
| 303 | 303 | ||
| 304 | static tlsextnextprotoctx next_proto; | 304 | static tlsextnextprotoctx next_proto; |
| 305 | 305 | ||
| 306 | static int | 306 | static int |
| 307 | next_proto_cb(SSL * s, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg) | 307 | next_proto_cb(SSL * s, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg) |
| 308 | { | 308 | { |
| 309 | tlsextnextprotoctx *ctx = arg; | 309 | tlsextnextprotoctx *ctx = arg; |
| @@ -338,7 +338,7 @@ enum { | |||
| 338 | 338 | ||
| 339 | int s_client_main(int, char **); | 339 | int s_client_main(int, char **); |
| 340 | 340 | ||
| 341 | int | 341 | int |
| 342 | s_client_main(int argc, char **argv) | 342 | s_client_main(int argc, char **argv) |
| 343 | { | 343 | { |
| 344 | unsigned int off = 0, clr = 0; | 344 | unsigned int off = 0, clr = 0; |
| @@ -436,7 +436,7 @@ s_client_main(int argc, char **argv) | |||
| 436 | goto bad; | 436 | goto bad; |
| 437 | verify_depth = strtonum(*(++argv), 0, INT_MAX, &errstr); | 437 | verify_depth = strtonum(*(++argv), 0, INT_MAX, &errstr); |
| 438 | if (errstr) | 438 | if (errstr) |
| 439 | goto bad; | 439 | goto bad; |
| 440 | BIO_printf(bio_err, "verify depth is %d\n", verify_depth); | 440 | BIO_printf(bio_err, "verify depth is %d\n", verify_depth); |
| 441 | } else if (strcmp(*argv, "-cert") == 0) { | 441 | } else if (strcmp(*argv, "-cert") == 0) { |
| 442 | if (--argc < 1) | 442 | if (--argc < 1) |
| @@ -1297,12 +1297,12 @@ end: | |||
| 1297 | BIO_free(bio_c_out); | 1297 | BIO_free(bio_c_out); |
| 1298 | bio_c_out = NULL; | 1298 | bio_c_out = NULL; |
| 1299 | } | 1299 | } |
| 1300 | 1300 | ||
| 1301 | return (ret); | 1301 | return (ret); |
| 1302 | } | 1302 | } |
| 1303 | 1303 | ||
| 1304 | 1304 | ||
| 1305 | static void | 1305 | static void |
| 1306 | print_stuff(BIO * bio, SSL * s, int full) | 1306 | print_stuff(BIO * bio, SSL * s, int full) |
| 1307 | { | 1307 | { |
| 1308 | X509 *peer = NULL; | 1308 | X509 *peer = NULL; |
| @@ -1478,7 +1478,7 @@ print_stuff(BIO * bio, SSL * s, int full) | |||
| 1478 | 1478 | ||
| 1479 | #ifndef OPENSSL_NO_TLSEXT | 1479 | #ifndef OPENSSL_NO_TLSEXT |
| 1480 | 1480 | ||
| 1481 | static int | 1481 | static int |
| 1482 | ocsp_resp_cb(SSL * s, void *arg) | 1482 | ocsp_resp_cb(SSL * s, void *arg) |
| 1483 | { | 1483 | { |
| 1484 | const unsigned char *p; | 1484 | const unsigned char *p; |
diff --git a/src/lib/libssl/src/apps/s_server.c b/src/lib/libssl/src/apps/s_server.c index 75e7d83354..b6e16f31ae 100644 --- a/src/lib/libssl/src/apps/s_server.c +++ b/src/lib/libssl/src/apps/s_server.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s_server.c,v 1.60 2014/07/12 19:31:21 jsing Exp $ */ | 1 | /* $OpenBSD: s_server.c,v 1.61 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -185,7 +185,7 @@ static void close_accept_socket(void); | |||
| 185 | static void sv_usage(void); | 185 | static void sv_usage(void); |
| 186 | static int init_ssl_connection(SSL * s); | 186 | static int init_ssl_connection(SSL * s); |
| 187 | static void print_stats(BIO * bp, SSL_CTX * ctx); | 187 | static void print_stats(BIO * bp, SSL_CTX * ctx); |
| 188 | static int | 188 | static int |
| 189 | generate_session_id(const SSL * ssl, unsigned char *id, | 189 | generate_session_id(const SSL * ssl, unsigned char *id, |
| 190 | unsigned int *id_len); | 190 | unsigned int *id_len); |
| 191 | #ifndef OPENSSL_NO_DH | 191 | #ifndef OPENSSL_NO_DH |
| @@ -282,7 +282,7 @@ static int cert_chain = 0; | |||
| 282 | 282 | ||
| 283 | 283 | ||
| 284 | 284 | ||
| 285 | static void | 285 | static void |
| 286 | s_server_init(void) | 286 | s_server_init(void) |
| 287 | { | 287 | { |
| 288 | accept_socket = -1; | 288 | accept_socket = -1; |
| @@ -312,7 +312,7 @@ s_server_init(void) | |||
| 312 | #endif | 312 | #endif |
| 313 | } | 313 | } |
| 314 | 314 | ||
| 315 | static void | 315 | static void |
| 316 | sv_usage(void) | 316 | sv_usage(void) |
| 317 | { | 317 | { |
| 318 | BIO_printf(bio_err, "usage: s_server [args ...]\n"); | 318 | BIO_printf(bio_err, "usage: s_server [args ...]\n"); |
| @@ -415,7 +415,7 @@ typedef struct tlsextctx_st { | |||
| 415 | } tlsextctx; | 415 | } tlsextctx; |
| 416 | 416 | ||
| 417 | 417 | ||
| 418 | static int | 418 | static int |
| 419 | ssl_servername_cb(SSL * s, int *ad, void *arg) | 419 | ssl_servername_cb(SSL * s, int *ad, void *arg) |
| 420 | { | 420 | { |
| 421 | tlsextctx *p = (tlsextctx *) arg; | 421 | tlsextctx *p = (tlsextctx *) arg; |
| @@ -461,7 +461,7 @@ static tlsextstatusctx tlscstatp = {NULL, NULL, NULL, 0, -1, NULL, 0}; | |||
| 461 | * considered "expired". | 461 | * considered "expired". |
| 462 | */ | 462 | */ |
| 463 | 463 | ||
| 464 | static int | 464 | static int |
| 465 | cert_status_cb(SSL * s, void *arg) | 465 | cert_status_cb(SSL * s, void *arg) |
| 466 | { | 466 | { |
| 467 | tlsextstatusctx *srctx = arg; | 467 | tlsextstatusctx *srctx = arg; |
| @@ -577,7 +577,7 @@ typedef struct tlsextnextprotoctx_st { | |||
| 577 | unsigned int len; | 577 | unsigned int len; |
| 578 | } tlsextnextprotoctx; | 578 | } tlsextnextprotoctx; |
| 579 | 579 | ||
| 580 | static int | 580 | static int |
| 581 | next_proto_cb(SSL * s, const unsigned char **data, unsigned int *len, void *arg) | 581 | next_proto_cb(SSL * s, const unsigned char **data, unsigned int *len, void *arg) |
| 582 | { | 582 | { |
| 583 | tlsextnextprotoctx *next_proto = arg; | 583 | tlsextnextprotoctx *next_proto = arg; |
| @@ -598,7 +598,7 @@ int s_server_main(int, char **); | |||
| 598 | static char *srtp_profiles = NULL; | 598 | static char *srtp_profiles = NULL; |
| 599 | #endif | 599 | #endif |
| 600 | 600 | ||
| 601 | int | 601 | int |
| 602 | s_server_main(int argc, char *argv[]) | 602 | s_server_main(int argc, char *argv[]) |
| 603 | { | 603 | { |
| 604 | X509_VERIFY_PARAM *vpm = NULL; | 604 | X509_VERIFY_PARAM *vpm = NULL; |
| @@ -1315,11 +1315,11 @@ end: | |||
| 1315 | BIO_free(bio_s_out); | 1315 | BIO_free(bio_s_out); |
| 1316 | bio_s_out = NULL; | 1316 | bio_s_out = NULL; |
| 1317 | } | 1317 | } |
| 1318 | 1318 | ||
| 1319 | return (ret); | 1319 | return (ret); |
| 1320 | } | 1320 | } |
| 1321 | 1321 | ||
| 1322 | static void | 1322 | static void |
| 1323 | print_stats(BIO * bio, SSL_CTX * ssl_ctx) | 1323 | print_stats(BIO * bio, SSL_CTX * ssl_ctx) |
| 1324 | { | 1324 | { |
| 1325 | BIO_printf(bio, "%4ld items in the session cache\n", | 1325 | BIO_printf(bio, "%4ld items in the session cache\n", |
| @@ -1345,7 +1345,7 @@ print_stats(BIO * bio, SSL_CTX * ssl_ctx) | |||
| 1345 | SSL_CTX_sess_get_cache_size(ssl_ctx)); | 1345 | SSL_CTX_sess_get_cache_size(ssl_ctx)); |
| 1346 | } | 1346 | } |
| 1347 | 1347 | ||
| 1348 | static int | 1348 | static int |
| 1349 | sv_body(char *hostname, int s, unsigned char *context) | 1349 | sv_body(char *hostname, int s, unsigned char *context) |
| 1350 | { | 1350 | { |
| 1351 | char *buf = NULL; | 1351 | char *buf = NULL; |
| @@ -1653,7 +1653,7 @@ err: | |||
| 1653 | return (ret); | 1653 | return (ret); |
| 1654 | } | 1654 | } |
| 1655 | 1655 | ||
| 1656 | static void | 1656 | static void |
| 1657 | close_accept_socket(void) | 1657 | close_accept_socket(void) |
| 1658 | { | 1658 | { |
| 1659 | BIO_printf(bio_err, "shutdown accept socket\n"); | 1659 | BIO_printf(bio_err, "shutdown accept socket\n"); |
| @@ -1663,7 +1663,7 @@ close_accept_socket(void) | |||
| 1663 | } | 1663 | } |
| 1664 | } | 1664 | } |
| 1665 | 1665 | ||
| 1666 | static int | 1666 | static int |
| 1667 | init_ssl_connection(SSL * con) | 1667 | init_ssl_connection(SSL * con) |
| 1668 | { | 1668 | { |
| 1669 | int i; | 1669 | int i; |
| @@ -1779,7 +1779,7 @@ err: | |||
| 1779 | } | 1779 | } |
| 1780 | #endif | 1780 | #endif |
| 1781 | 1781 | ||
| 1782 | static int | 1782 | static int |
| 1783 | www_body(char *hostname, int s, unsigned char *context) | 1783 | www_body(char *hostname, int s, unsigned char *context) |
| 1784 | { | 1784 | { |
| 1785 | char *buf = NULL; | 1785 | char *buf = NULL; |
| @@ -2128,7 +2128,7 @@ tmp_rsa_cb(SSL * s, int is_export, int keylength) | |||
| 2128 | } | 2128 | } |
| 2129 | 2129 | ||
| 2130 | #define MAX_SESSION_ID_ATTEMPTS 10 | 2130 | #define MAX_SESSION_ID_ATTEMPTS 10 |
| 2131 | static int | 2131 | static int |
| 2132 | generate_session_id(const SSL * ssl, unsigned char *id, | 2132 | generate_session_id(const SSL * ssl, unsigned char *id, |
| 2133 | unsigned int *id_len) | 2133 | unsigned int *id_len) |
| 2134 | { | 2134 | { |
diff --git a/src/lib/libssl/src/apps/s_time.c b/src/lib/libssl/src/apps/s_time.c index c5fd05b828..a150ff3153 100644 --- a/src/lib/libssl/src/apps/s_time.c +++ b/src/lib/libssl/src/apps/s_time.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s_time.c,v 1.33 2014/07/12 19:31:21 jsing Exp $ */ | 1 | /* $OpenBSD: s_time.c,v 1.34 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -123,7 +123,7 @@ static int st_bugs = 0; | |||
| 123 | static int perform = 0; | 123 | static int perform = 0; |
| 124 | static int t_nbio = 0; | 124 | static int t_nbio = 0; |
| 125 | 125 | ||
| 126 | static void | 126 | static void |
| 127 | s_time_init(void) | 127 | s_time_init(void) |
| 128 | { | 128 | { |
| 129 | host = SSL_CONNECT_NAME; | 129 | host = SSL_CONNECT_NAME; |
| @@ -147,7 +147,7 @@ s_time_init(void) | |||
| 147 | /*********************************************************************** | 147 | /*********************************************************************** |
| 148 | * usage - display usage message | 148 | * usage - display usage message |
| 149 | */ | 149 | */ |
| 150 | static void | 150 | static void |
| 151 | s_time_usage(void) | 151 | s_time_usage(void) |
| 152 | { | 152 | { |
| 153 | static const char umsg[] = "\ | 153 | static const char umsg[] = "\ |
| @@ -178,7 +178,7 @@ s_time_usage(void) | |||
| 178 | * | 178 | * |
| 179 | * Returns 0 if ok, -1 on bad args | 179 | * Returns 0 if ok, -1 on bad args |
| 180 | */ | 180 | */ |
| 181 | static int | 181 | static int |
| 182 | parseArgs(int argc, char **argv) | 182 | parseArgs(int argc, char **argv) |
| 183 | { | 183 | { |
| 184 | int badop = 0; | 184 | int badop = 0; |
| @@ -301,7 +301,7 @@ bad: | |||
| 301 | #define START 0 | 301 | #define START 0 |
| 302 | #define STOP 1 | 302 | #define STOP 1 |
| 303 | 303 | ||
| 304 | static double | 304 | static double |
| 305 | tm_Time_F(int s) | 305 | tm_Time_F(int s) |
| 306 | { | 306 | { |
| 307 | return app_tminterval(s, 1); | 307 | return app_tminterval(s, 1); |
| @@ -313,7 +313,7 @@ tm_Time_F(int s) | |||
| 313 | */ | 313 | */ |
| 314 | int s_time_main(int, char **); | 314 | int s_time_main(int, char **); |
| 315 | 315 | ||
| 316 | int | 316 | int |
| 317 | s_time_main(int argc, char **argv) | 317 | s_time_main(int argc, char **argv) |
| 318 | { | 318 | { |
| 319 | double totalTime = 0.0; | 319 | double totalTime = 0.0; |
| @@ -517,7 +517,7 @@ end: | |||
| 517 | SSL_CTX_free(tm_ctx); | 517 | SSL_CTX_free(tm_ctx); |
| 518 | tm_ctx = NULL; | 518 | tm_ctx = NULL; |
| 519 | } | 519 | } |
| 520 | 520 | ||
| 521 | return (ret); | 521 | return (ret); |
| 522 | } | 522 | } |
| 523 | 523 | ||
diff --git a/src/lib/libssl/src/apps/sess_id.c b/src/lib/libssl/src/apps/sess_id.c index cc5cf51214..e841003cf6 100644 --- a/src/lib/libssl/src/apps/sess_id.c +++ b/src/lib/libssl/src/apps/sess_id.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: sess_id.c,v 1.18 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: sess_id.c,v 1.19 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -86,7 +86,7 @@ static SSL_SESSION *load_sess_id(char *file, int format); | |||
| 86 | 86 | ||
| 87 | int sess_id_main(int, char **); | 87 | int sess_id_main(int, char **); |
| 88 | 88 | ||
| 89 | int | 89 | int |
| 90 | sess_id_main(int argc, char **argv) | 90 | sess_id_main(int argc, char **argv) |
| 91 | { | 91 | { |
| 92 | SSL_SESSION *x = NULL; | 92 | SSL_SESSION *x = NULL; |
| @@ -240,7 +240,7 @@ end: | |||
| 240 | BIO_free_all(out); | 240 | BIO_free_all(out); |
| 241 | if (x != NULL) | 241 | if (x != NULL) |
| 242 | SSL_SESSION_free(x); | 242 | SSL_SESSION_free(x); |
| 243 | 243 | ||
| 244 | return (ret); | 244 | return (ret); |
| 245 | } | 245 | } |
| 246 | 246 | ||
diff --git a/src/lib/libssl/src/apps/smime.c b/src/lib/libssl/src/apps/smime.c index 92e379d3e3..8386f1e458 100644 --- a/src/lib/libssl/src/apps/smime.c +++ b/src/lib/libssl/src/apps/smime.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: smime.c,v 1.27 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: smime.c,v 1.28 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project. | 3 | * project. |
| 4 | */ | 4 | */ |
| @@ -84,7 +84,7 @@ static int smime_cb(int ok, X509_STORE_CTX * ctx); | |||
| 84 | 84 | ||
| 85 | int smime_main(int, char **); | 85 | int smime_main(int, char **); |
| 86 | 86 | ||
| 87 | int | 87 | int |
| 88 | smime_main(int argc, char **argv) | 88 | smime_main(int argc, char **argv) |
| 89 | { | 89 | { |
| 90 | ENGINE *e = NULL; | 90 | ENGINE *e = NULL; |
| @@ -660,7 +660,7 @@ end: | |||
| 660 | return (ret); | 660 | return (ret); |
| 661 | } | 661 | } |
| 662 | 662 | ||
| 663 | static int | 663 | static int |
| 664 | save_certs(char *signerfile, STACK_OF(X509) * signers) | 664 | save_certs(char *signerfile, STACK_OF(X509) * signers) |
| 665 | { | 665 | { |
| 666 | int i; | 666 | int i; |
| @@ -679,7 +679,7 @@ save_certs(char *signerfile, STACK_OF(X509) * signers) | |||
| 679 | 679 | ||
| 680 | /* Minimal callback just to output policy info (if any) */ | 680 | /* Minimal callback just to output policy info (if any) */ |
| 681 | 681 | ||
| 682 | static int | 682 | static int |
| 683 | smime_cb(int ok, X509_STORE_CTX * ctx) | 683 | smime_cb(int ok, X509_STORE_CTX * ctx) |
| 684 | { | 684 | { |
| 685 | int error; | 685 | int error; |
diff --git a/src/lib/libssl/src/apps/speed.c b/src/lib/libssl/src/apps/speed.c index 1258cc2581..61b2157c28 100644 --- a/src/lib/libssl/src/apps/speed.c +++ b/src/lib/libssl/src/apps/speed.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: speed.c,v 1.51 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: speed.c,v 1.52 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -165,7 +165,7 @@ static int usertime = 1; | |||
| 165 | 165 | ||
| 166 | static double Time_F(int s); | 166 | static double Time_F(int s); |
| 167 | static void print_message(const char *s, long num, int length); | 167 | static void print_message(const char *s, long num, int length); |
| 168 | static void | 168 | static void |
| 169 | pkey_print_message(const char *str, const char *str2, | 169 | pkey_print_message(const char *str, const char *str2, |
| 170 | long num, int bits, int sec); | 170 | long num, int bits, int sec); |
| 171 | static void print_result(int alg, int run_no, int count, double time_used); | 171 | static void print_result(int alg, int run_no, int count, double time_used); |
| @@ -207,7 +207,7 @@ sig_done(int sig) | |||
| 207 | #define STOP 1 | 207 | #define STOP 1 |
| 208 | 208 | ||
| 209 | 209 | ||
| 210 | static double | 210 | static double |
| 211 | Time_F(int s) | 211 | Time_F(int s) |
| 212 | { | 212 | { |
| 213 | return app_tminterval(s, usertime); | 213 | return app_tminterval(s, usertime); |
| @@ -232,7 +232,7 @@ KDF1_SHA1(const void *in, size_t inlen, void *out, size_t * outlen) | |||
| 232 | 232 | ||
| 233 | int speed_main(int, char **); | 233 | int speed_main(int, char **); |
| 234 | 234 | ||
| 235 | int | 235 | int |
| 236 | speed_main(int argc, char **argv) | 236 | speed_main(int argc, char **argv) |
| 237 | { | 237 | { |
| 238 | unsigned char *buf = NULL, *buf2 = NULL; | 238 | unsigned char *buf = NULL, *buf2 = NULL; |
| @@ -1934,11 +1934,11 @@ end: | |||
| 1934 | EC_KEY_free(ecdh_b[i]); | 1934 | EC_KEY_free(ecdh_b[i]); |
| 1935 | } | 1935 | } |
| 1936 | 1936 | ||
| 1937 | 1937 | ||
| 1938 | return (mret); | 1938 | return (mret); |
| 1939 | } | 1939 | } |
| 1940 | 1940 | ||
| 1941 | static void | 1941 | static void |
| 1942 | print_message(const char *s, long num, int length) | 1942 | print_message(const char *s, long num, int length) |
| 1943 | { | 1943 | { |
| 1944 | BIO_printf(bio_err, mr ? "+DT:%s:%d:%d\n" | 1944 | BIO_printf(bio_err, mr ? "+DT:%s:%d:%d\n" |
| @@ -1947,7 +1947,7 @@ print_message(const char *s, long num, int length) | |||
| 1947 | alarm(SECONDS); | 1947 | alarm(SECONDS); |
| 1948 | } | 1948 | } |
| 1949 | 1949 | ||
| 1950 | static void | 1950 | static void |
| 1951 | pkey_print_message(const char *str, const char *str2, long num, | 1951 | pkey_print_message(const char *str, const char *str2, long num, |
| 1952 | int bits, int tm) | 1952 | int bits, int tm) |
| 1953 | { | 1953 | { |
| @@ -1957,7 +1957,7 @@ pkey_print_message(const char *str, const char *str2, long num, | |||
| 1957 | alarm(tm); | 1957 | alarm(tm); |
| 1958 | } | 1958 | } |
| 1959 | 1959 | ||
| 1960 | static void | 1960 | static void |
| 1961 | print_result(int alg, int run_no, int count, double time_used) | 1961 | print_result(int alg, int run_no, int count, double time_used) |
| 1962 | { | 1962 | { |
| 1963 | BIO_printf(bio_err, mr ? "+R:%d:%s:%f\n" | 1963 | BIO_printf(bio_err, mr ? "+R:%d:%s:%f\n" |
| @@ -1993,7 +1993,7 @@ sstrsep(char **string, const char *delim) | |||
| 1993 | return token; | 1993 | return token; |
| 1994 | } | 1994 | } |
| 1995 | 1995 | ||
| 1996 | static int | 1996 | static int |
| 1997 | do_multi(int multi) | 1997 | do_multi(int multi) |
| 1998 | { | 1998 | { |
| 1999 | int n; | 1999 | int n; |
diff --git a/src/lib/libssl/src/apps/spkac.c b/src/lib/libssl/src/apps/spkac.c index 20492bb818..3eef33061d 100644 --- a/src/lib/libssl/src/apps/spkac.c +++ b/src/lib/libssl/src/apps/spkac.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: spkac.c,v 1.20 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: spkac.c,v 1.21 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 1999. Based on an original idea by Massimiliano Pala | 3 | * project 1999. Based on an original idea by Massimiliano Pala |
| 4 | * (madwolf@openca.org). | 4 | * (madwolf@openca.org). |
| @@ -78,7 +78,7 @@ | |||
| 78 | 78 | ||
| 79 | int spkac_main(int, char **); | 79 | int spkac_main(int, char **); |
| 80 | 80 | ||
| 81 | int | 81 | int |
| 82 | spkac_main(int argc, char **argv) | 82 | spkac_main(int argc, char **argv) |
| 83 | { | 83 | { |
| 84 | ENGINE *e = NULL; | 84 | ENGINE *e = NULL; |
| @@ -275,6 +275,6 @@ end: | |||
| 275 | BIO_free_all(out); | 275 | BIO_free_all(out); |
| 276 | EVP_PKEY_free(pkey); | 276 | EVP_PKEY_free(pkey); |
| 277 | free(passin); | 277 | free(passin); |
| 278 | 278 | ||
| 279 | return (ret); | 279 | return (ret); |
| 280 | } | 280 | } |
diff --git a/src/lib/libssl/src/apps/verify.c b/src/lib/libssl/src/apps/verify.c index 1fae9dd933..218270aa44 100644 --- a/src/lib/libssl/src/apps/verify.c +++ b/src/lib/libssl/src/apps/verify.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: verify.c,v 1.25 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: verify.c,v 1.26 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -238,7 +238,7 @@ end: | |||
| 238 | sk_X509_pop_free(untrusted, X509_free); | 238 | sk_X509_pop_free(untrusted, X509_free); |
| 239 | sk_X509_pop_free(trusted, X509_free); | 239 | sk_X509_pop_free(trusted, X509_free); |
| 240 | sk_X509_CRL_pop_free(crls, X509_CRL_free); | 240 | sk_X509_CRL_pop_free(crls, X509_CRL_free); |
| 241 | 241 | ||
| 242 | return (ret < 0 ? 2 : ret); | 242 | return (ret < 0 ? 2 : ret); |
| 243 | } | 243 | } |
| 244 | 244 | ||
diff --git a/src/lib/libssl/src/apps/version.c b/src/lib/libssl/src/apps/version.c index 2497a0618e..4bb0ef558c 100644 --- a/src/lib/libssl/src/apps/version.c +++ b/src/lib/libssl/src/apps/version.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: version.c,v 1.17 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: version.c,v 1.18 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -203,6 +203,6 @@ version_main(int argc, char **argv) | |||
| 203 | if (dir) | 203 | if (dir) |
| 204 | printf("%s\n", SSLeay_version(SSLEAY_DIR)); | 204 | printf("%s\n", SSLeay_version(SSLEAY_DIR)); |
| 205 | end: | 205 | end: |
| 206 | 206 | ||
| 207 | return (ret); | 207 | return (ret); |
| 208 | } | 208 | } |
diff --git a/src/lib/libssl/src/apps/x509.c b/src/lib/libssl/src/apps/x509.c index 647aa9c0f8..6729ed412c 100644 --- a/src/lib/libssl/src/apps/x509.c +++ b/src/lib/libssl/src/apps/x509.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509.c,v 1.48 2014/07/12 17:54:31 jsing Exp $ */ | 1 | /* $OpenBSD: x509.c,v 1.49 2014/07/14 00:35:10 deraadt Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -933,7 +933,7 @@ end: | |||
| 933 | sk_ASN1_OBJECT_pop_free(trust, ASN1_OBJECT_free); | 933 | sk_ASN1_OBJECT_pop_free(trust, ASN1_OBJECT_free); |
| 934 | sk_ASN1_OBJECT_pop_free(reject, ASN1_OBJECT_free); | 934 | sk_ASN1_OBJECT_pop_free(reject, ASN1_OBJECT_free); |
| 935 | free(passin); | 935 | free(passin); |
| 936 | 936 | ||
| 937 | return (ret); | 937 | return (ret); |
| 938 | } | 938 | } |
| 939 | 939 | ||
