summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2021-05-16Add a missing space.Joel Sing
2021-05-16Fix formatting of multi-line license comment per style(9).Joel Sing
2021-05-16Avoid pulling ssl_sigalgs.h in via ssl_locl.h.Joel Sing
Forward declare struct sigalg in ssl_locl.h and avoid including ssl_sigalgs.h. Explicitly include ssl_sigalgs.h where it is needed.
2021-05-16Remove unnecessary includes from the bytestring APIs.Joel Sing
The bytestring APIs are self contained, hence including openssl headers here is unnecessary.
2021-05-16Explicitly include <openssl/opensslconf.h> in files using OPENSSL_NO_*Joel Sing
Where a file references to OPENSSL_NO_* conditions, ensure that we explicitly include <openssl/opensslconf.h> before any references, rather than relying on another header to pull this in.
2021-05-14whitespace/KNFTheo Buehler
2021-05-14Improve libcrypto obj_xref.h generatorKinichiro Inoguchi
Modify objxref.pl to output $OpenBSD$ header and __BEGIN_HIDDEN_DECLS / __END_HIDDEN_DECLS . ok and comment from tb@
2021-05-14Fix regression for _setjmp, fucntion does not use stack and adjustingDale Rahn
it causes restored stack to be incorrect.
2021-05-13Add missing .Pp in HISTORY section.Theo Buehler
2021-05-13Add missing .PpTheo Buehler
2021-05-12Merge documentation for SSL_CIPHER_find(3) from OpenSSL 1.1.1.Theo Buehler
2021-05-12Install SSL_SESSION_get0_cipher.3Theo Buehler
2021-05-12Document SSL_SESSION_get0_cipher(3)Theo Buehler
Based on the OpenSSL 1.1.1 manual written by Rich Salz with a healthy dose of improvements by schwarze. ok schwarze
2021-05-12Add obj_xref for ECDH schemes in RFC 5753Kinichiro Inoguchi
Found missing sigoid_srt record in crypto/objects/obj_xref.h, and this causes error while executing openssl cms -encrypt with EC key/cert. Added required definitions to obj_xref.txt and obj_xref.h. Issue reported by Theodore Wynnychenko (tmw <at> uchicago.edu) on misc. ok tb@
2021-05-12Correct defines for fenv rounding modes and change fenv_t and fexcept_tJonathan Gray
from unsigned long long to unsigned int. ok kettenis@
2021-05-11Document SSL_CTX_get_ssl_method(3)Theo Buehler
2021-05-11Merge some details from OpenSSL 1.1.1.Theo Buehler
2021-05-11missing word in previousTheo Buehler
2021-05-11Merge documentation for EVP_DigestVerify() from OpenSSL 1.1.1.Theo Buehler
2021-05-11Merge documentation for EVP_DigestSign from OpenSSL 1.1.1.Theo Buehler
2021-05-11use FE_ALL_EXCEPT not _ROUND_MASK when masking fcsr exception bitsJonathan Gray
2021-05-11zap stray commaTheo Buehler
2021-05-10Merge documentation for EC_GROUP_{set,get}_curve(3) from OpenSSL 1.1.1.Theo Buehler
2021-05-10Merge documentation for EC_POINT_{get,set}_coordinates andTheo Buehler
for EC_POINT_set_compressed_coordinates from OpenSSL 1.1.1.
2021-05-10Update libexpat to 2.3.0. Relevant for OpenBSD are only bug fixAlexander Bluhm
#438 and other change #443. A new error constant has been added to a public header file. According to guenther@ this is an ABI break that requires a major bump. OK tb@; tested by matthieu@
2021-05-10give libtls the same bump as libsslTheo Buehler
2021-05-10bump libssl major after struct visibility changes and symbol additionTheo Buehler
2021-05-10bump libcrypto minor after symbol additionTheo Buehler
2021-05-10Make SSL_CIPHER, SSL_CTX, SSL_SESSION, {DTLS1,SSL3}_STATETheo Buehler
and a few other structs in libssl opaque. from/ok jsing
2021-05-10Provide SSL_SESSION_get0_cipher(3)Theo Buehler
ok jsing
2021-05-10Provide SSL_CTX_get_ssl_method(3)Theo Buehler
ok jsing
2021-05-10Provide SSL_CIPHER_find(3)Theo Buehler
ok jsing
2021-05-10Expose EVP_Digest{Sign,Verify}(3)Theo Buehler
ok jsing
2021-05-10Expose EC_POINT_{get,set}_affine_coordinates(3) andTheo Buehler
EC_POINT_set_compressed_coordinates(3) ok jsing
2021-05-10Expose EC_GROUP_{get,set}_curve(3)Theo Buehler
ok jsing
2021-05-09Change offsets to (N * 8) to reduce chance of register clobber and mistakes.Dale Rahn
Simplify integer loading, use 'li <dest>, <value>' instead of x0/zero register Adjust _JB_SIGMASK to not collide with saved registers.
2021-05-09Add draft-ietf-sidrops-rpki-rsc OIDjob
Listed under 'SMI Security for S/MIME CMS Content Type (1.2.840.113549.1.9.16.1)' https://www.iana.org/assignments/smi-numbers/smi-numbers.xhtml#security-smime-1 OK tb@
2021-05-09Prepare to provide EVP_Digest{Sign,Verify}Theo Buehler
These are one-shot versions combining EVP_Digest{Sign,Verify}{Update,Final}. and are part of the OpenSSL 1.1.1 API. While they simplify callers in some situations slightly, their real use is for EdDSA that by design can't be split into Update/Final steps. Based on OpenSSL commit 7539418981c140648a620d72edd7398564878b5c ok inoguchi
2021-05-08Revert previous commit.Martijn van Duren
Someone this introduces some problems that I didn't ran into during testing
2021-05-08In the C locale make codepoints > 0x7f return EILSEQ, since these aren'tMartijn van Duren
part of that locale. This matches what at least FreeBSD and glibc do. OK millert@
2021-05-05Replace DTLS w_epoch with epoch from TLSv1.2 record layer.Joel Sing
ok inoguchi@ tb@
2021-05-05Rewrite TLSv1.2 key block handling.Joel Sing
For TLSv1.2 a single key block is generated, then partitioned into individual secrets for use as IVs and keys. The previous implementation splits this across two functions tls1_setup_key_block() and tls1_change_cipher_state(), which means that the IV and key sizes have to be known in multiple places. This implementation generates and partitions the key block in a single step, meaning that the secrets are then simply handed out when requested. ok inoguchi@ tb@
2021-05-04sigpending(2) will never fail. Optimize the syscall stub accordingly likeMark Kettenis
we do on other architectures. ok mpi@
2021-05-04Remove cerror dependancy from riscv64 asm syscalls.Dale Rahn
Directly update cerror as offset of thread pointer, with optimizations on error brnaching ok kettenis@
2021-05-04riscv64 brk()/sbrk() implementations,Dale Rahn
based off a combination of aarch64/powerpc64 ok kettenis@
2021-05-03Fix corner case for compressed points on binary curvesTheo Buehler
Per X9.62 4.4.1.b., the compressed representation of a point with zero x coordinate on a binary curve must have y_bit unset. Error out in that case of ec_GF2m_set_compressed_coordinates() instead of ignoring y_bit. ok jsing
2021-05-02riscv64, fix HANDLE_ERRORDale Rahn
the CERROR handling code had a gross mistake in that that it didn't continue processing the code after the macro if no error occurred. ok kettenis@
2021-05-02riscv64 openssl configDale Rahn
copied from other 64 bit arch ok jsg@
2021-05-02Prevent future internal use of some #definesTheo Buehler
After jsing's recent commits, SSL3_CC_{READ,WRITE,CLIENT,SERVER} and the derived SSL3_CHANGE_CIPHER_{CLIENT,SERVER}_{READ,WRITE} are no longer used by LibreSSL and should never be used again. discussed with jsing
2021-05-02Clean up tls1_change_cipher_state().Joel Sing
Replace flag gymnastics at call sites with separate read and write, functions which call the common code. Condition on s->server instead of using SSL_ST_ACCEPT, for consistency and more readable code. ok inoguchi@ tb@