summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/apps/s_socket.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move openssl(1) from /usr/sbin/openssl to /usr/bin/openssl, since it is notjsing2014-08-261-351/+0
| | | | | | | | a system/superuser binary. At the same time, move the source code from its current lib/libssl/src/apps location to a more appropriate home under usr.bin/openssl. ok deraadt@ miod@
* Use strtonum() instead of atoi(), and then impose what are we thinkderaadt2014-06-281-4/+5
| | | | | | are the current range checks. Help from millert and lteo. Please test now that it is deployed and let us know if any numbers are off.. ok lteo
* tags as requested by miod and teduderaadt2014-06-121-1/+1
|
* There is no need to include <openssl/e_os2.h> here, except for the factjsing2014-05-261-1/+0
| | | | | that it brings in <openssl/opensslconf.h>, so just do that instead (currently via apps.h).
* Fix resource descriptor leaks.logan2014-05-251-0/+4
| | | | | | CID: 966576 & 966577 OK from guenther@ and "Yup. looks good." from tedu@
* signal.h is not needed here.jsing2014-05-231-1/+0
|
* It is perfectly valid to call free(NULL), so stop checking for non-NULLjsing2014-05-191-2/+1
| | | | before calling free - of some course parts of the code already did this.
* Group and sort includes.jsing2014-05-181-10/+10
| | | | | | | | Currently "apps.h" needs to be included before any of the openssl headers and there are several cases where the code depends on headers that are included by something included by apps.h... More untangling saved for later on.
* Nuke OPENSSL_NO_SOCK since any half sane operating system has sockets.jsing2014-05-021-2/+0
| | | | ok beck@
* NON_MAIN no longer means anything so remove it, along with APP_INIT.jsing2014-04-251-2/+0
| | | | ok miod@
* remove the openssl_fdset wrapper, and a variety of VMS'ism's likederaadt2014-04-191-8/+2
| | | | | crazy (void *) casts all over the place ok beck jsing
* Remove a gethostbyname() cache layer. The internet works better thesederaadt2014-04-191-50/+1
| | | | days. Initially fixed this, but Ted asked for it to die.
* Remove hacky workaround for Cray T3E.deraadt2014-04-191-11/+0
| | | | ok guenther
* oops, typo got into changederaadt2014-04-191-1/+1
|
* malloc + strlcpy -> strdupderaadt2014-04-191-3/+2
|
* use intrinsic strlcpy and strlcat everywhere so we only have one set ofbeck2014-04-191-1/+1
| | | | | | funcitons to check for incorrect use. keep BUF_strlcpy and BUF_strlcat for API comptibility only. ok tedu@
* Put the final pieces from e_os.h in the required places, and remove it.deraadt2014-04-181-11/+1
| | | | | "dance on it's grave" says beck ok guenther beck
* KaboomNFtedu2014-04-181-32/+30
|
* unistd.h exposed after -Wall after e_os.h stops doing so; spotted by matthewderaadt2014-04-171-0/+1
|
* Mostly gut e_os.h:deraadt2014-04-171-2/+3
| | | | | | | | USE_SOCKETS is unrelated to using sockets, but just pulls in .h files. It makes every file buy a kitchen sink, because 11 files forgot to. EXIT() is really exit(), a gentle surprise but... OPENSSL_EXIT() is really just return(), because noone compiles the openssl command non-monolithic anymore
* dead codetedu2014-04-171-2/+0
|
* Initial KNF.jsing2014-04-171-212/+214
|
* Remove defines for unwanted OS support...jsing2014-04-171-54/+0
| | | | ok miod@
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-171-3/+3
| | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
* first round of unifdef hammeringtedu2014-04-161-81/+1
|
* spray the apps directory with anti-VMS napalm.tedu2014-04-161-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | so that its lovecraftian horror is not forever lost, i reproduce below a comment from the deleted code. /* 2011-03-22 SMS. * If we have 32-bit pointers everywhere, then we're safe, and * we bypass this mess, as on non-VMS systems. (See ARGV, * above.) * Problem 1: Compaq/HP C before V7.3 always used 32-bit * pointers for argv[]. * Fix 1: For a 32-bit argv[], when we're using 64-bit pointers * everywhere else, we always allocate and use a 64-bit * duplicate of argv[]. * Problem 2: Compaq/HP C V7.3 (Alpha, IA64) before ECO1 failed * to NULL-terminate a 64-bit argv[]. (As this was written, the * compiler ECO was available only on IA64.) * Fix 2: Unless advised not to (VMS_TRUST_ARGV), we test a * 64-bit argv[argc] for NULL, and, if necessary, use a * (properly) NULL-terminated (64-bit) duplicate of argv[]. * The same code is used in either case to duplicate argv[]. * Some of these decisions could be handled in preprocessing, * but the code tends to get even uglier, and the penalty for * deciding at compile- or run-time is tiny. */
* Remove various horrible socket syscall wrappers, especially SHUTDOWN*deraadt2014-04-131-8/+13
| | | | | | which did shutdown + close, all nasty and surprising. Use the raw syscalls that everyone knows the behaviour of. ok beck matthew
* openssl-1.0.0e: resolve conflictsdjm2011-11-031-4/+3
|
* resolve conflicts, fix local changesdjm2010-10-011-1/+7
|
* missing ssl_sock_init() call in init_client() (used bydjm2009-01-301-3/+10
| | | | "openssl s_client"), fix an unlikely memory leak
* remerge local tweaks, update per-arch configuration headers, updatedjm2008-09-061-6/+4
| | | | Makefiles, crank shlib_version
* resolve conflictsdjm2008-09-061-24/+85
|
* kill strcpy; ok hshoexer@, prodded by david@djm2005-05-101-1/+1
|
* resolve conflictsdjm2005-04-291-1/+0
|
* merge 0.9.7dmarkus2004-04-081-1/+1
|
* support IPv6 connections in "openssl s_client", adding -4 and -6 options todjm2004-03-311-89/+32
| | | | force protocol; ok itojun@
* merge 0.9.7b with local changes; crank majors for libssl/libcryptomarkus2003-05-121-14/+25
|
* more strcpy & sprintf murder; ho okderaadt2003-04-041-1/+1
|
* OpenSSL 0.9.7 stable 2002 05 08 mergebeck2002-05-151-16/+18
|
* openssl-engine-0.9.6 mergebeck2000-12-151-3/+5
|
* OpenSSL 0.9.5a mergebeck2000-04-151-153/+19
|
* OpenSSL 0.9.4 mergebeck1999-09-291-66/+71
|
* Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD buildryker1998-10-051-0/+669
functionality for shared libs. Note that routines such as sslv2_init and friends that use RSA will not work due to lack of RSA in this library. Needs documentation and help from ports for easy upgrade to full functionality where legally possible.