diff options
author | miod <> | 2014-04-23 20:59:36 +0000 |
---|---|---|
committer | miod <> | 2014-04-23 20:59:36 +0000 |
commit | 2200007b52bd1fa0d16b0f986bb90e51ec5fcf01 (patch) | |
tree | 1096190589e0961bf69454ee8670bf22d4a20a41 /src/lib/libcrypto/dsa/dsa_asn1.c | |
parent | a874a9e945512d316a64779e37a6b661549ae60d (diff) | |
download | openbsd-2200007b52bd1fa0d16b0f986bb90e51ec5fcf01.tar.gz openbsd-2200007b52bd1fa0d16b0f986bb90e51ec5fcf01.tar.bz2 openbsd-2200007b52bd1fa0d16b0f986bb90e51ec5fcf01.zip |
The usual idiom to cope with systems not defining socklen_t is to add a
#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@
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_asn1.c')
0 files changed, 0 insertions, 0 deletions