summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_dgram.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Hide symbols in asn1 and biobeck2023-07-051-1/+4
| | | | ok jsing@
* spelling fixes; from paul tagliamontejmc2022-12-261-2/+2
| | | | | | | i removed the arithmetics -> arithmetic changes, as i felt they were not clearly correct ok tb
* Add a new, mostly empty, bio_local.h and include it in the filestb2022-01-071-1/+3
| | | | | | that will need it in the upcoming bump. discussed with jsing
* Add const qualifiers to the return values of BIO_s_mem() andtb2018-05-121-3/+3
| | | | | | BIO_s_datagram(). ok jsing
* Correct #if/else logic in BIO's dgram_ctrl.doug2015-07-201-3/+3
| | | | | | | | | Coverity issue 72741 noticed that ret is being overwritten before use. The actual issue is that the #if/else logic is guarding the wrong lines. Besides impacting ret, this also made the case's break logic wrong because it was in the wrong location. ok bcook@ beck@
* Jettison SCTP support in BIO dgram.jsing2015-02-091-994/+1
| | | | | | | | OpenBSD does not have SCTP support and it sees little use in the wild. OPENSSL_NO_SCTP is already specified via opensslfeatures.h, hence this is a code removal only and symbols should remain unchanged. ok beck@ miod@ tedu@
* Fix a memory leak in bss_dgram.doug2015-01-121-3/+13
| | | | | | | | Free data->saved_message.data. Based on OpenSSL commit: 41cd41c4416f545a18ead37e09e437c75fa07c95 except this version sets a->ptr to NULL to avoid accidental reuse and handles malloc failing. ok beck@, input + ok miod@
* Fix incorrect OPENSSL_assert() usage.doug2015-01-031-24/+53
| | | | | | | | Instead of asserting, return an error code for I/O errors. This is based on OpenSSL commit 2521fcd8527008ceb3e4748f95b0ed4e2d70cfef. Added checks for two calloc()s while I'm here. ok miod@
* remove superflous gettimeofday wrapper.bcook2014-11-261-9/+2
| | | | ok beck@ tedu@ miod@ guenther@ doug@ deraadt@
* memset like a normal human.bcook2014-11-261-10/+10
| | | | ok beck@ tedu@ miod@
* normalize set/getsockopt usage.bcook2014-11-261-40/+23
| | | | | | | | | | Remove the remaining random casts on optval. Fixups for this can be handled by the portability layer all in once place. Remove remaining fake socklen_t unions, though beck@ points out that this also removes support for socklen_t changing its length at runtime. RIP. ok tedu@ beck@ miod@ deraadt@
* Linux has had IP_MTU since 2005, don't force it.bcook2014-11-261-8/+4
| | | | ok beck@ miod@ tedu@ deraadt@
* Include <sys/time.h> to get struct timevalbcook2014-08-241-1/+2
| | | | | | | | | The crypto/bio/bss_dgram.c file assumes that another file indirectly includes <stdlib.h> that includes <sys/time.h>. from Jonas 'Sortie' Termansen ok deraadt@ tedu@
* Missing calloc() return value check in dgram_sctp_ctrl(); from Kurt Roeckx viamiod2014-07-111-11/+21
| | | | OpenSSL trunk
* Only import cryptlib.h in the four source files that actually need it.jsing2014-07-111-2/+1
| | | | | | | | Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@
* Explicitly include <openssl/opensslconf.h> in every file that referencesjsing2014-07-101-1/+3
| | | | | | | | | an OPENSSL_NO_* define. This avoids relying on something else pulling it in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is never going to do anything, since OPENSSL_NO_XYZ will never defined, due to the fact that opensslconf.h has not been included. This also includes some miscellaneous sorting/tidying of headers.
* Stop including standard headers via cryptlib.h - pull in the headers thatjsing2014-07-101-5/+8
| | | | | | are needed in the source files that actually require them. ok beck@ miod@
* tags as requested by miod and teduderaadt2014-06-121-1/+1
|
* Fix memory leak.logan2014-06-031-0/+1
| | | | | | (From Martin Brejcha) OK from tedu@, miod@ and deraadt@
* more: no need for null check before freederaadt2014-05-301-4/+2
| | | | ok tedu guenther
* Use C99 initializers for the various FOO_METHOD structs. More readable, andmiod2014-04-271-20/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | avoid unreadable/unmaintainable constructs like that: const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = { EVP_PKEY_CMAC, EVP_PKEY_CMAC, 0, "CMAC", "OpenSSL CMAC method", 0,0,0,0, 0,0,0, cmac_size, 0, 0,0,0,0,0,0,0, cmac_key_free, 0, 0,0 }; ok matthew@ deraadt@
* This is not FreeBSD.jsing2014-04-261-18/+0
| | | | ok miod@
* The usual idiom to cope with systems not defining socklen_t is to add amiod2014-04-231-14/+3
| | | | | | | | | | | | | | | | | | #define socklen_t int somewhere (or a typedef, whatever gives you an integer type of the size your system expects as the 3rd argument of accept(2), really). OpenSSL here is a bit more creative by using an union of an int and a size_t, and extra code if sizeof(int) != sizeof(size_t) in order to recover the proper size. With a comment mentioning that this has no chance to work on a platform with a stack growing up and accept() returning an int, fortunately this seems to work on HP-UX. Switch to the light side of the force and declare and use socklen_t variables, period. If your system does not define socklen_t, consider bringing it back to your vendor for a refund. ok matthew@ tedu@
* wrong calloc, see people do carederaadt2014-04-211-1/+2
|
* Bring malloc/calloc/realloc sequences to modern standardderaadt2014-04-211-12/+6
| | | | ok guenther
* Put the final pieces from e_os.h in the required places, and remove it.deraadt2014-04-181-22/+2
| | | | | "dance on it's grave" says beck ok guenther beck
* unistd.h for protos where neededderaadt2014-04-181-0/+1
|
* more windows/netware leftoverstedu2014-04-171-4/+0
|
* delete if 0 codetedu2014-04-171-25/+14
|
* Mostly gut e_os.h:deraadt2014-04-171-2/+4
| | | | | | | | 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
* some KNF cleanup following the scriptderaadt2014-04-171-8/+8
|
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-171-11/+11
| | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
* > As I walk through the valley of the shadow of deathtedu2014-04-161-10/+0
| | | | | | | | | > I take a look at my life and realize there's nothin' left > Cause I've been blasting and laughing so long, > That even my mama thinks that my mind is gone Remove even more unspeakable evil being perpetuated in the name of VMS. (and lesser evils done in the name of others.) ok miod
* Clean up non-fatal error handling - we know which error numbers we havejsing2014-04-161-30/+0
| | | | | | defined. ok miod@ beck@
* Toss a `unifdef -U OPENSSL_SYS_WINDOWS' bomb into crypto/bio.jsing2014-04-151-113/+1
| | | | ok miod@
* First pass at applying KNF to the OpenSSL code, which almost makes itjsing2014-04-151-560/+554
| | | | | readable. This pass is whitespace only and can readily be verified using tr and md5.
* two SHUTDOWN2 got away; noticed by beckderaadt2014-04-141-1/+2
|
* Remove various horrible socket syscall wrappers, especially SHUTDOWN*deraadt2014-04-131-13/+13
| | | | | | which did shutdown + close, all nasty and surprising. Use the raw syscalls that everyone knows the behaviour of. ok beck matthew
* Flense a variety of windows support stuff, and a strange gettimeofday function.beck2014-04-131-12/+0
| | | | ok deraadt@
* Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery.miod2014-04-131-29/+62
|
* resolve conflictsdjm2012-10-131-0/+996
|
* openssl-1.0.0e: resolve conflictsdjm2011-11-031-7/+13
|
* resolve conflicts, fix local changesdjm2010-10-011-49/+331
|
* update to openssl-0.9.8i; tested by several, especially krw@djm2009-01-051-2/+62
|
* import of OpenSSL 0.9.8hdjm2008-09-061-0/+488