summaryrefslogtreecommitdiff
path: root/usr.bin/openssl
AgeCommit message (Collapse)Author
2021-04-21Fix const in previous. Pointed out by asouTheo Buehler
2021-04-20Add prototypes for EC_GROUP_get_curve_{GF2m,GFp}().Theo Buehler
These will be removed once EC_GROUP_get_curve() is public.
2021-04-07Check function return value in openssl(1) x509.cKinichiro Inoguchi
input from bcook@, ok and comments from tb@
2021-04-07Avoid leak in error pathKinichiro Inoguchi
ok and input from tb@
2021-04-02Show DTLS1.2 message with openssl(1) s_server and s_clientKinichiro Inoguchi
ok jsing@ tb@
2021-04-01Compare the pointer variable explicitly with NULL in if conditionKinichiro Inoguchi
2021-03-31Remove workarounds for SSL_is_dtls()Theo Buehler
Reminded by inoguchi jsing
2021-03-28Fix duplicate SSL_is_dtls in libssl and apps.cKinichiro Inoguchi
Currently, SSL_is_dtls exists in both libssl and apps.c, and one in libssl is guarded by LIBRESSL_INTERNAL and not exposed yet. This causes portable build broke with openssl(1) and optionstest. To solve this temporarily, rename SSL_is_dtls by apps.h. This temporary renaming will be removed when the SSL_is_dtls() is exposed. ok jsing@
2021-03-26Sort header files and wrap long lines in x509.cKinichiro Inoguchi
2021-03-24Convert openssl(1) x509 option handlingKinichiro Inoguchi
Apply new option handling to openssl(1) x509. To handle incremental order value, using newly added OPTION_ORDER. I left the descriptions for -CAform, -inform, and -outform as it was, for now. These description would be fixed. And digest option handler could be consolidated to one between some subcommands in the future. ok and comments from tb@, and "I'd move forward with your current plan." from jsing@
2021-03-24Add option type OPTION_ORDERKinichiro Inoguchi
To handle incremental order value, added new option type OPTION_ORDER. openssl(1) x509 requires this option handling, since, - -CA and -signkey require to set both filename and incremental 'num'. - -dates requires to set two variables in a row, startdate and enddate. and this couldn't be solved by OPTION_FLAG_ORD. ok tb@ and "I'd move forward with your current plan." from jsing@
2021-03-17Read ahead is now enforced for DTLS - remove workarounds.Joel Sing
ok inoguchi@ tb@
2021-03-17Use consistent s_server_opt_ prefix.Joel Sing
2021-03-17Add DTLSv1.2 support to openssl(1) s_client/s_server.Joel Sing
ok inoguchi@ tb@
2021-02-15Only print the certificate file once on verifification failure.Joel Sing
Noted by Steffen Ullrich. ok tb@
2020-12-30Document meaning of '*' in genrsa outputTheo Buehler
ok inoguchi jmc kn
2020-12-16Remove a redundant memset call.Theo Buehler
2020-11-03Wrap remaining overlong lines.Theo Buehler
2020-11-03garbage collect an essentially unused variable and wrap some overlongTheo Buehler
lines
2020-11-03* ptr -> *ptrTheo Buehler
2020-11-03X509_verify_cert()'s return value is not reliable if the callbackTheo Buehler
returns 1. verify.c's cb() ignores a bunch of things to display as much info as possible. Thus, check the error code on the store ctx as well, similar to OpenSSL commit d9e309a6 (old licence). This makes openssl verify error on expired certs, at least with the legacy verify code. While here, fix a number of style issues, simplify and plug a leak. ok inoguchi
2020-11-01some comma fixes; from varik valeforJason McIntyre
(audio.4 tweaked from that submitted)
2020-10-26Add a -legacy_verify flag to force use of the old validator for debuggingTheo Buehler
and testing purposes. ok beck inoguchi jsing
2020-10-14no need to initialize i if it's re-initialized a few lines downTheo Buehler
2020-10-14Free peekaboo pbuf at end of s_client_main()Theo Buehler
Otherwise each run of the s_client leaks 16k of memory. This hurts in interactive mode. ok inoguchi jsing
2020-10-13Make sure an OCSP query sends a host headerTheo Buehler
While OCSP uses HTTP/1.0 where a host header is optional, some widely used OCSP responders will return 400 bad request if it is missing. Add such a header unless it's already provided in the user's custom headers. OpenSSL did something similar in ff4a9394a23 and 76e0cd12f68 (both commits are under the old license) ok inoguchi
2020-10-08set SO_REUSEADDR on the server socket when we play oscp server.Bob Beck
ok inoguchi@ tb@ deraadt@
2020-10-02Add -[46] nops for compatibility with the OpenSSL s_serverTheo Buehler
On OpenBSD it's necessary to use the eopenssl11 s_server with either -4 or -6 to choose an address family. I often want to try something with an OpenSSL server and then test the same thing with LibreSSL or vice versa. Adding and removing -4s on top of editing the command is annoying and distracting. This commits teaches our s_server to ignore -4 and -6 and thus makes commands that work with eopenssl11 more likely to work with openssl(1). These options are deliberately undocumented and don't show up in help listings. ok bcook inoguchi jsing
2020-09-09Wrap long lines, add space in front of goto label in openssl(1) ocsp.cKinichiro Inoguchi
2020-09-09Change SSLv23_client_method to TLS_client_method openssl(1) ocspKinichiro Inoguchi
2020-09-09Remove space between pointer '*' and variable name in ocsp.cKinichiro Inoguchi
2020-09-09Convert openssl(1) ocsp option handlingKinichiro Inoguchi
input and ok tb@
2020-09-09Add option type OPTION_UL_VALUE_ORKinichiro Inoguchi
ok tb@
2020-08-09Convert openssl req option handling.Joel Sing
With input from inoguchi@ ok beck@ inoguchi@
2020-07-27Wrap long lines s_server.cKinichiro Inoguchi
2020-07-27Add function prototype and move sub functions to bottomKinichiro Inoguchi
2020-07-27Remove space between '*' and pointer variable in s_server.cKinichiro Inoguchi
2020-07-27Remove 's_' prefix from member of s_server_config structKinichiro Inoguchi
2020-07-27Convert openssl(1) s_server option handlingKinichiro Inoguchi
ok and comments from jsing@
2020-07-14Convert option handling for openssl(1) verify.Joel Sing
ok inoguchi@, tb@
2020-07-14Remove hyphenKinichiro Inoguchi
2020-07-14Add single space between pem and ...Kinichiro Inoguchi
2020-07-14Add manual for openssl(1) certhashKinichiro Inoguchi
ok jmc@
2020-07-10Clean up s_client.cKinichiro Inoguchi
- Remove space between '*' and pointer variable. - Add function prototype. - Move callback function to bottom. - Move typedef struct to up.
2020-07-10Change variable bio_c_out from global to localKinichiro Inoguchi
ok tb@
2020-07-09Wrap long lines and put space in front of label in s_client.cKinichiro Inoguchi
2020-07-09Remove c_ prefix from s_client_config memberKinichiro Inoguchi
2020-07-09Convert openssl(1) s_client option handlingKinichiro Inoguchi
suggestions and ok beck@ jsing@ tb@
2020-05-23While the second SSL_CTX in this code is only used on servernameTheo Buehler
callback, so its mode is not used to update the ssl's mode, it seems more appropriate to clear the SSL_MODE_AUTO_RETRY flag on it as well. ok jsing
2020-05-23In ssl_lib.c revision 1.217, jsing enabled SSL_MODE_AUTO_RETRY byTheo Buehler
default. To avoid hanging on a blocking read, we need to clear the SSL_MODE_AUTO_RETRY flag in the s_client and the s_server. ok beck inoguchi jsing