summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/labs.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-09-10bump majorbeck1-1/+1
ok jsing@
2015-09-10change TLS_READ_AGAIN to TLS_WANT_POLLIN and TLS_WRITE_AGAIN to TLS_WANT_POLLOUTbeck2-7/+7
to make it more clear to users of this api what needs to be done in these error cases. Discussed extensively with bluhm@ and jsing@ and others. ok jsing@
2015-09-10Change tls_read and tls_write semantics to return an ssize_t to betterbeck2-21/+14
match read() and write() semantics to make porting existing code using read/write easier.. requested by bluhm@ who convinced jsing and I to break the api ok jsing@ bluhm@
2015-09-10Split tls_handshake() out from tls_accept/tls_connect. By doing this thejsing5-59/+120
tls_accept/tls_connect functions can be guaranteed to succeed or fail and will no longer return TLS_READ_AGAIN/TLS_WRITE_AGAIN. This also resolves the semantics of tls_accept_*. The tls_handshake() function now does I/O and can return TLS_READ_AGAIN/TLS_WRITE_AGAIN. Calls to tls_read() and tls_write() will trigger the handshake if it has not already completed, meaning that in many cases existing code will continue to work. Discussed over many coffees at l2k15. ok beck@ bluhm@
2015-09-10tweak Nd after previous; ok mpijmc1-2/+2
2015-09-10add MLINKS for _prefer_ciphers_*jmc1-1/+3
2015-09-10Add support for preferring the server's cipher list or the client's cipherjsing5-8/+47
list. Prefer the server's cipher list by default. Based on a diff from Kyle Thompson <jmp at giga dot moe>. ok beck@ bcook@
2015-09-10Remove link_addr(3). A function to encode the name of an interface inmpi3-136/+8
a sockaddr_dl is a questionnable interface. But now it makes it harder to properly reference ifp becauses of this. Set sdl_index to the index of the corresponding interface when constructing a routing message. Ridding previous libc crank. ok guenther@, deraadt@, dlg@
2015-09-10Fix an incorrect error check in DSA verify.bcook2-8/+4
From Matt Caswell's OpenSSL commit "RT3192: spurious error in DSA verify". https://github.com/openssl/openssl/commit/eb63bce040d1cc6147d256f516b59552c018e29b
2015-09-10Fix shadowed verify_error in s_server by removing the unused global.bcook4-10/+8
's_time -verify 1' will now actually verify the peer certificate. ok beck@
2015-09-10Remove SOCKET_PROTOCOL, a redundant define that was only used once.lteo1-4/+2
No binary change. ok millert@ miod@
2015-09-10Remove unused defines. No binary change.lteo2-9/+2
ok deraadt@ miod@
2015-09-09Add missing CVS Mdocdate tags. No text change, except for the changeschwarze16-16/+16
of date that can't be helped.
2015-09-09Indent labels with a space so that diff -p is more friendly.jsing6-18/+18
Requested by bluhm@
2015-09-09Check handshake_func against NULL rather than 0, since it is a functionjsing2-14/+14
pointer. ok bcook@ miod@
2015-09-09Add client certificate support. Still needs a few tweaks but this willbeck6-34/+76
ride upcoming minor bump ok jsing@
2015-09-09always clear errno when coming back from tls_read tls_write, and tls_close.beck1-9/+20
this avoids the problem of people checking for return values < 0 and then checking for errno before checking for TLS_READ_AGAIN TLS_WRITE_AGAIN - since we can not guarantee what errno will be set to from the underlying library calls
2015-09-09nuke trailing whitespacebeck1-4/+3
ok jsing@