CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 11:09:45 Modified files: regress/lib/libcrypto/aead: aeadtest.c Log message: Update copyright for additional/new code.

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 10:40:23 Modified files: regress/lib/libcrypto/aead: Makefile Added files: regress/lib/libcrypto/aead: aes_128_gcm_tests.txt aes_192_gcm_tests.txt

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 10:31:41 Modified files: regress/lib/libcrypto/aead: aeadtest.c Log message: Add EVP_aes_192_gcm() as a known AEAD.

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 10:30:42 Modified files: regress/lib/libcrypto/aead: Makefile aeadtest.c Log message: Allow the AEAD to be specified for a test file. Currently, this must be specified per test - allow it to be g

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 10:17:22 Modified files: regress/lib/libcrypto/aead: aeadtest.c Log message: Run AEAD tests against EVP_CIPHER implementations. In addition to running AEAD tests against the EVP_AEAD implementati

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 10:12:40 Modified files: regress/lib/libcrypto/aead: aeadtest.c Log message: Allow quoted ASCII strings as input for AEAD regress. Currently, each line in the text file is expected to be string o

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 08:49:15 Modified files: regress/lib/libcrypto/aead: aeadtest.c Log message: Sort includes.

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 08:24:33 Modified files: regress/lib/libcrypto/aead: aeadtest.c Log message: Less #ifndef OPENSSL_NO_* We're not going to be compiling without AES or CHACHA/POLY1305 anytime soon.

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 08:09:00 Modified files: regress/lib/libcrypto/aead: aeadtest.c Log message: Fix comment formatting.

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 08:06:36 Modified files: regress/lib/libcrypto/aead: aeadtest.c Log message: Switch to ISC license. Use Google's ISC license for this code - this was originally being upstreamed to OpenSSL by Ada

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 07:51:31 Modified files: lib/libcrypto/aes/asm: aesni-x86_64.pl Log message: Add stack frames to AES-NI x86_64 assembly. The current AES-NI x86_64 assembly does some strange, although valid thing

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 07:42:25 Modified files: lib/libcrypto/asn1: x_bignum.c Log message: Use ASN1_INTEGER to encode/decode BIGNUM_it. The current code simply shoves the unvalidated ASN.1 bytes into a BIGNUM on the h

CVS: cvs.openbsd.org: src

2022-07-30 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/30 07:37:17 Modified files: lib/libcrypto/asn1: x_bignum.c Log message: Provide and use a primitive clear function for BIGNUM_it. Also tidy up bn_new() while here. ok tb@

CVS: cvs.openbsd.org: src

2022-07-24 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/24 09:05:16 Modified files: lib/libssl : ssl_lib.c Log message: Move cipher_id bsearch functions back to the bottom of the file.

CVS: cvs.openbsd.org: src

2022-07-24 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/24 08:31:37 Modified files: lib/libssl : tls13_quic.c Log message: Set NULL BIOs for QUIC. When used with QUIC, the SSL BIOs are effectively unused, however we still currently expect them to exi

CVS: cvs.openbsd.org: src

2022-07-24 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/24 08:28:17 Modified files: lib/libssl : Makefile ssl_locl.h tls13_internal.h tls13_lib.c tls13_record_layer.c tls_internal.h Added files: lib/libssl : tls13_

CVS: cvs.openbsd.org: src

2022-07-24 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/24 08:19:45 Modified files: lib/libssl : tls13_lib.c Log message: Move tls13_phh_done_cb() after tl13_phh_received_cb(). This is the order that they're called/run in.

CVS: cvs.openbsd.org: src

2022-07-24 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/24 08:16:29 Modified files: lib/libssl : ssl.h tls13_client.c tls13_internal.h tls13_lib.c tls13_record_layer.c tls13_server.c Log message: Provide QUIC encryption level

CVS: cvs.openbsd.org: src

2022-07-22 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/22 13:54:46 Modified files: lib/libssl : ssl_locl.h ssl_transcript.c Log message: Convert TLS transcript from BUF_MEM to tls_buffer. ok beck@ tb@

CVS: cvs.openbsd.org: src

2022-07-22 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/22 13:34:55 Modified files: regress/lib/libssl/buffer: buffertest.c Log message: Extend TLS buffer regress to cover read/write usage.

CVS: cvs.openbsd.org: src

2022-07-22 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/22 13:33:53 Modified files: lib/libssl : tls13_handshake_msg.c tls13_record.c tls_buffer.c tls_internal.h Log message: Add read and write support to tls_buffer. tls_buf

CVS: cvs.openbsd.org: src

2022-07-19 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/20 00:32:24 Modified files: lib/libssl : tls13_handshake_msg.c tls13_internal.h tls13_lib.c tls13_record_layer.c tls_buffer.c tls_internal.h Lo

CVS: cvs.openbsd.org: src

2022-07-19 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/20 00:20:44 Modified files: lib/libssl : tls13_lib.c Log message: Correct server-side handling of TLSv1.3 key updates. The existing code updates the correct secret, however then sets it for the

CVS: cvs.openbsd.org: src

2022-07-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/17 09:51:06 Modified files: lib/libssl : tls13_lib.c Log message: Disable TLSv1.3 middlebox compatibility mode for QUIC connections. This is required by RFC 9001. ok tb@

CVS: cvs.openbsd.org: src

2022-07-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/17 09:49:20 Modified files: lib/libssl : tls13_internal.h tls13_legacy.c tls13_lib.c Log message: Pass SSL pointer to tls13_ctx_new(). struct tls13_ctx already knows about SSL's and this way tls

CVS: cvs.openbsd.org: src

2022-07-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/17 08:57:05 Modified files: regress/lib/libssl/tlsext: tlsexttest.c Log message: Revise regress for QUIC transport parameters TLS extension.

CVS: cvs.openbsd.org: src

2022-07-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/17 08:54:10 Modified files: lib/libssl : ssl_tlsext.c Log message: Correct handling of QUIC transport parameters extension. Remove duplicate U16 length prefix, since tlsext_build() already adds

CVS: cvs.openbsd.org: src

2022-07-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/17 08:49:01 Modified files: lib/libssl : ssl.h ssl_lib.c ssl_locl.h Log message: Provide SSL_is_quic() This function will allow code to know if the SSL connection is configured for use with QUIC

CVS: cvs.openbsd.org: src

2022-07-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/17 08:41:27 Modified files: lib/libssl : ssl_tlsext.c Log message: Correct TLSEXT_TYPE_quic_transport_parameters message types. Per RFC 9001, TLSEXT_TYPE_quic_transport_parameters may only appea

CVS: cvs.openbsd.org: src

2022-07-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/17 08:39:09 Modified files: lib/libssl : tls1.h Log message: Correct value for TLSEXT_TYPE_quic_transport_parameters Use the correct value for TLSEXT_TYPE_quic_transport_parameters according to

CVS: cvs.openbsd.org: src

2022-07-13 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/13 14:07:44 Modified files: lib/libcrypto/asn1: a_int.c Log message: Cast int64_t to uint64_t before negating. Avoid undefined behaviour/integer overflow by casting an int64_t to uint64_t before neg

CVS: cvs.openbsd.org: src

2022-07-12 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/12 12:43:56 Modified files: lib/libcrypto/ui: ui.h Log message: Unbreak the tree, after the previous commit.

CVS: cvs.openbsd.org: src

2022-07-03 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/03 08:58:00 Modified files: lib/libssl : ssl_srvr.c Log message: Simplify certificate list handling code in legacy server. A client is required to send an empty list if it does not have a suitab

CVS: cvs.openbsd.org: src

2022-07-03 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/03 08:52:39 Modified files: lib/libssl : ssl_clnt.c Log message: Simplify certificate list handling code in legacy client. Tidy up CBS code and remove some unnecessary length checks. Use 'cert'

CVS: cvs.openbsd.org: src

2022-07-02 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/02 13:36:07 Modified files: lib/libssl : ssl_cert.c Log message: Call certificate variables cert and certs, rather than x and sk ok tb@

CVS: cvs.openbsd.org: src

2022-07-02 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/02 12:14:35 Modified files: lib/libcrypto/asn1: x_long.c Log message: Use ASN1_INTEGER to parse/build (Z)LONG_it Rather than having yet another (broken) ASN.1 INTEGER content builder and parser, use

CVS: cvs.openbsd.org: src

2022-07-02 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/07/02 11:09:09 Modified files: lib/libcrypto/man: EC_GFp_simple_method.3 EC_GROUP_copy.3 X509_NAME_get_index_by_NID.3 Log message: Remove references to openssl/obj_mac.h Con

CVS: cvs.openbsd.org: src

2022-06-28 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/06/28 13:44:28 Modified files: lib/libcrypto/asn1: a_int.c Log message: Negate unsigned then cast to signed. Avoid undefined behaviour by negating the unsigned value, before casting to int64_t, rather

CVS: cvs.openbsd.org: src

2022-06-26 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/06/26 07:10:15 Modified files: lib/libcrypto/asn1: x_long.c Log message: Provide and use long_{get,set}() Apparently at some point a LONG_it was misaligned - provide and use long_{get,set}() so that we

CVS: cvs.openbsd.org: src

2022-06-25 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/06/25 11:43:56 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Use ints for boolean values. Switch to using ints for boolean values and use 0 or 1 for constructed, rather than using 0 the A

CVS: cvs.openbsd.org: src

2022-06-25 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/06/25 10:15:18 Modified files: lib/libcrypto/asn1: a_enum.c asn1.h Log message: Reuse ASN1_INTEGER functions for ASN1_ENUMERATED_{get,set}() Instead of having a separate get/set implementation, reuse t

CVS: cvs.openbsd.org: src

2022-06-25 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/06/25 09:49:28 Modified files: regress/lib/libcrypto/asn1: asn1basic.c Log message: Check pointer argument after {d2i,i2d}_ASN1_{BIT_STRING,BOOLEAN,INTEGER}()

CVS: cvs.openbsd.org: src

2022-06-25 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/06/25 09:41:15 Modified files: regress/lib/libcrypto/asn1: asn1basic.c Log message: Add regress for ASN1_INTEGER_{get,set}_{u,}int64()

CVS: cvs.openbsd.org: src

2022-06-25 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/06/25 09:39:12 Modified files: lib/libcrypto/asn1: a_int.c asn1.h asn1_err.c asn1_locl.h Log message: Rewrite ASN1_INTEGER_{get,set}() using CBS/CBB In the process, prepare to provide ASN1_INTEGER_{get

CVS: cvs.openbsd.org: src

2022-06-25 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/06/25 08:22:54 Modified files: lib/libcrypto/asn1: a_int.c Log message: Simplify ASN1_INTEGER_cmp() ok beck@ tb@

CVS: cvs.openbsd.org: src

2022-06-25 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/06/25 07:57:17 Modified files: regress/lib/libcrypto/asn1: asn1basic.c Log message: Add regress for ASN1_INTEGER_cmp()

CVS: cvs.openbsd.org: src

2022-05-21 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/21 07:21:42 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Remove some unhelpful comments and spell NULL correctly.

CVS: cvs.openbsd.org: src

2022-05-21 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/21 07:16:19 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Factor out ASN1_ITYPE_EXTERN handling. Factor out the ef->asn1_ex_d2i() callback handling - this allows us to pull out all of

CVS: cvs.openbsd.org: src

2022-05-21 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/21 05:21:31 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Use 'at' for ASN1_TEMPLATE variable names rather than 'tt'. Also use array indexes for it->templates, rather than trying to be

CVS: cvs.openbsd.org: src

2022-05-21 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/21 05:12:04 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Remove _ex_ from all of the internal function names. It no longer makes sense to have "extended" versions of functions interna

CVS: cvs.openbsd.org: src

2022-05-19 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/19 13:45:18 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Reorder functions within file. Order functions by use, moving public API to the bottom and utility functions to the top. This

CVS: cvs.openbsd.org: src

2022-05-19 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/19 13:31:39 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Rewrite the asn1_template_*() functions with CBS. Rewrite the asn1_template_*() functions with CBS, readable variable names an

CVS: cvs.openbsd.org: src

2022-05-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/17 13:09:16 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Refactor asn1_d2i_ex_primitive() Split the object content handling off into asn1_d2i_ex_primitive_content(), move the handling

CVS: cvs.openbsd.org: src

2022-05-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/17 06:23:53 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Refactor ASN.1 template functions before rewriting. Change asn1_template_ex_d2i() so that we short circuit in the no explicit

CVS: cvs.openbsd.org: src

2022-05-16 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/16 14:06:15 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Rewrite asn1_item_ex_d2i_sequence() using CBS and readable variable names. Now that combine no longer exists, we can also free

CVS: cvs.openbsd.org: src

2022-05-12 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/12 14:06:46 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Call the ASN1_OP_D2I_PRE callback after ASN1_item_ex_new(). In asn1_item_ex_d2i_choice(), only call the ASN1_OP_D2I_PRE callba

CVS: cvs.openbsd.org: src

2022-05-12 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/12 13:55:58 Modified files: lib/libcrypto/asn1: asn1_locl.h tasn_fre.c tasn_utl.c Log message: Rename asn1_enc_free() to asn1_enc_cleanup(). This function does not actually free an ASN1_ENCODING, wh

CVS: cvs.openbsd.org: src

2022-05-12 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/12 13:52:31 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Rewrite asn1_item_ex_d2i_choice() using CBS. Now that combine no longer exists, we can also free and reallocate. ok tb@

CVS: cvs.openbsd.org: src

2022-05-12 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/12 13:33:19 Modified files: lib/libcrypto/asn1: asn1_locl.h tasn_dec.c tasn_utl.c Log message: Rewrite asn1_enc_save() using CBS. Rework and clean up other asn1_enc_* related functions while here.

CVS: cvs.openbsd.org: src

2022-05-12 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/12 13:24:38 Modified files: lib/libcrypto/asn1: tasn_utl.c Log message: Use freezero() with ASN1_ENCODING. While ASN1_ENCODING is currently only used with types that should only contain public infor

CVS: cvs.openbsd.org: src

2022-05-12 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/12 13:11:14 Modified files: lib/libcrypto/asn1: asn1t.h tasn_dec.c Log message: Remove ASN1_AFLG_BROKEN. This workaround was used by ASN1_BROKEN_SEQUENCE, which existed for NETSCAPE_ENCRYPTED_PKEY.

CVS: cvs.openbsd.org: src

2022-05-10 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/10 12:40:07 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Rewrite asn1_item_ex_d2i() using CBS. This requires a few wrappers to call into some non-CBS functions, however we can now rem

CVS: cvs.openbsd.org: src

2022-05-09 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/09 23:19:23 Modified files: lib/libcrypto/asn1: asn1t.h tasn_dec.c tasn_fre.c tasn_new.c tasn_utl.c Log message: Remove ASN.1 combining. This was an option used to combi

CVS: cvs.openbsd.org: src

2022-05-09 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/09 13:19:33 Modified files: lib/libcrypto/asn1: t_req.c x_attrib.c lib/libcrypto/pkcs12: p12_attr.c lib/libcrypto/pkcs7: pk7_doit.c lib/libcrypto/x509: x509_att.c x509_lcl.h

CVS: cvs.openbsd.org: src

2022-05-07 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/07 09:50:25 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Split asn1_item_ex_d2i() into three. Factor out the handling of CHOICE and SEQUENCE into their own functions. This reduces com

CVS: cvs.openbsd.org: src

2022-05-07 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/07 04:13:56 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Rewrite asn1_d2i_ex_primitive() with CBS. ok tb@

CVS: cvs.openbsd.org: src

2022-05-07 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/07 04:03:49 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Refactor asn1_ex_c2i() The asn1_ex_c2i() function currently handles the V_ASN1_ANY case inline, which means there multiple spe

CVS: cvs.openbsd.org: src

2022-05-07 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/07 01:47:24 Modified files: lib/libcrypto/bn: bn_nist.c Log message: Avoid strict aliasing violations in BN_nist_mod_*() The optimised code path switches from processing data via unsigned long to pr

CVS: cvs.openbsd.org: src

2022-05-05 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/05 13:18:57 Modified files: lib/libcrypto/asn1: asn1_lib.c asn1_locl.h asn1_old_lib.c tasn_dec.c Log message: Use size_t for ASN.1 lengths. Change asn1_get_length_cbs()

CVS: cvs.openbsd.org: src

2022-05-04 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/04 04:57:48 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Rewrite asn1_collect() and asn1_find_end() with CBS. Use more readable variable and arguments names in the process. ok tb@

CVS: cvs.openbsd.org: src

2022-05-04 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/04 04:53:26 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Avoid special handling of definite length before calling asn1_find_end(). The asn1_find_end() function handles definite length

CVS: cvs.openbsd.org: src

2022-05-04 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/05/04 04:47:36 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Change asn1_check_tag_cbs() out_len from long to size_t. The long vs size_t checks can be handled in the asn1_check_tag() wrap

CVS: cvs.openbsd.org: src

2022-04-28 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/28 12:36:38 Modified files: regress/lib/libcrypto/asn1: asn1complex.c Log message: Add tests that decode sequences into ASN.1 strings. Test decoding of sequences with length and indefinite length in

CVS: cvs.openbsd.org: src

2022-04-28 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/28 12:30:57 Modified files: lib/libcrypto/asn1: asn1_lib.c asn1_locl.h tasn_dec.c Log message: Rewrite asn1_check_tlen() using CBS. Rather than calling asn1_get_object_cbs(), call asn1_get_identifie

CVS: cvs.openbsd.org: src

2022-04-27 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/27 11:56:13 Modified files: lib/libcrypto/asn1: asn1_locl.h tasn_dec.c Log message: Decode via c2i_ASN1_INTEGER_cbs() from asn1_ex_c2i().

CVS: cvs.openbsd.org: src

2022-04-27 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/27 11:43:41 Modified files: regress/lib/libcrypto/asn1: asn1complex.c asn1x509.c Log message: Ensure we clear the error stack before running tests that print errors.

CVS: cvs.openbsd.org: src

2022-04-27 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/27 11:43:06 Modified files: regress/lib/libcrypto/asn1: asn1basic.c Log message: Enable ASN.1 INTEGER tests with invalid lengths/encodings.

CVS: cvs.openbsd.org: src

2022-04-27 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/27 11:42:08 Modified files: lib/libcrypto/asn1: a_int.c Log message: Rewrite c2i_ASN1_INTEGER() using CBS. This also makes validation stricter and inline with X.690 - we now reject zero length input

CVS: cvs.openbsd.org: src

2022-04-27 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/27 11:28:34 Modified files: lib/libcrypto/asn1: tasn_dec.c Log message: Remove the ASN.1 decoder tag/length cache (TLC). Currently, every time an ASN.1 identifier and length is decoded it is stored

CVS: cvs.openbsd.org: src

2022-04-26 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/26 14:00:18 Modified files: lib/libcrypto/asn1: a_bitstr.c asn1_locl.h tasn_dec.c Log message: Decode via c2i_ASN1_BIT_STRING_cbs() from asn1_ex_c2i(). ok inoguchi@ tb@

CVS: cvs.openbsd.org: src

2022-04-23 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/23 12:56:54 Modified files: lib/libcrypto/asn1: a_bitstr.c Log message: Rewrite c2i_ASN1_BIT_STRING() using CBS. Also switch to freeing and allocating, rather than attempting to recycle. While here,

CVS: cvs.openbsd.org: src

2022-04-23 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/23 12:47:08 Modified files: lib/libcrypto/asn1: a_object.c asn1_locl.h tasn_dec.c Log message: Convert asn1_ex_c2i() to CBS. This allows us to make direct use of c2i_ASN1_OBJECT_cbs(). ok inoguchi@

CVS: cvs.openbsd.org: src

2022-04-23 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/04/23 12:23:48 Modified files: regress/lib/libcrypto/asn1: asn1basic.c Log message: Add ASN1_INTEGER test coverage.

CVS: cvs.openbsd.org: www

2022-04-17 Thread Joel Sing
CVSROOT:/cvs Module name:www Changes by: js...@cvs.openbsd.org 2022/04/17 11:16:25 Modified files: . : 71.html Log message: Prune the LibreSSL section. Remove various items that are not really release note worthy, primarily from the "Internal Improvements"

CVS: cvs.openbsd.org: www

2022-04-17 Thread Joel Sing
CVSROOT:/cvs Module name:www Changes by: js...@cvs.openbsd.org 2022/04/17 11:02:12 Modified files: . : 71.html Log message: Additional LibreSSL changes. >From inoguchi@

CVS: cvs.openbsd.org: src

2022-03-26 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/26 09:05:54 Modified files: lib/libssl : d1_pkt.c ssl_pkt.c Log message: Clean up {dtls1,ssl3}_read_bytes() Now that {dtls1,ssl3}_read_bytes() have been refactored, do a clean up pass - this cle

CVS: cvs.openbsd.org: src

2022-03-26 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/26 09:00:51 Modified files: lib/libssl : d1_pkt.c Log message: Remove the minimum record length checks from dtls1_read_bytes() The code that handles each record type already has appropriate leng

CVS: cvs.openbsd.org: src

2022-03-26 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/26 08:54:58 Modified files: lib/libcrypto/asn1: a_object.c Log message: Convert c2i_ASN1_OBJECT() and d2i_ASN1_OBJECT to CBS. Along the way, rather than having yet another piece of code that parses

CVS: cvs.openbsd.org: src

2022-03-26 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/26 08:47:59 Modified files: lib/libcrypto/asn1: asn1_lib.c asn1_locl.h Log message: Provide asn1_get_primitive() This takes a CBS, gets the ASN.1 identifier and length, ensures the resulting identif

CVS: cvs.openbsd.org: src

2022-03-20 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/20 07:27:23 Modified files: lib/libcrypto/asn1: a_object.c Log message: Move/group i2d_ASN1_OBJECT() and d2i_ASN1_OBJECT().

CVS: cvs.openbsd.org: src

2022-03-19 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/19 11:49:32 Modified files: lib/libcrypto/asn1: a_object.c asn1_locl.h lib/libcrypto/objects: obj_dat.c Log message: Provide t2i_ASN1_OBJECT_internal() and use it for OBJ_txt2obj() The curr

CVS: cvs.openbsd.org: src

2022-03-19 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/19 11:37:10 Modified files: regress/lib/libcrypto/asn1: asn1object.c Log message: Revise regress for ascii/text to ASN.1 object conversion rewrite.

CVS: cvs.openbsd.org: src

2022-03-19 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/19 11:35:52 Modified files: lib/libcrypto/asn1: a_object.c Log message: Rewrite ascii/text to ASN.1 object conversion. Rewrite the ascii/text to ASN.1 object conversion code using CBB/CBS, while als

CVS: cvs.openbsd.org: src

2022-03-19 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/19 10:23:17 Modified files: regress/lib/libcrypto/asn1: asn1object.c Log message: Add another invalid separator test case.

CVS: cvs.openbsd.org: src

2022-03-18 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/18 12:01:17 Modified files: lib/libssl : ssl_lib.c Log message: Simplify SSL_do_handshake(). ok inoguchi@ tb@

CVS: cvs.openbsd.org: src

2022-03-18 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/18 12:00:54 Modified files: lib/libssl : d1_pkt.c Log message: Rewrite legacy DTLS unexpected handshake message handling. Rewrite the code that handles unexpected handshake messages in the legac

CVS: cvs.openbsd.org: src

2022-03-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/17 11:28:08 Modified files: lib/libssl : ssl_pkt.c Log message: Rewrite legacy TLS unexpected handshake message handling. Rewrite the code that handles unexpected handshake messages in the legac

CVS: cvs.openbsd.org: src

2022-03-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/17 11:24:37 Modified files: lib/libssl : s3_lib.c Log message: Clean up and simplify ssl3_renegotiate{,_check}() ok inoguchi@ tb@

CVS: cvs.openbsd.org: src

2022-03-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/17 11:22:16 Modified files: lib/libssl : ssl_locl.h ssl_transcript.c Log message: Remove const from tls1_transcript_hash_value() This function populates the passed *out argument, hence it should

CVS: cvs.openbsd.org: src

2022-03-17 Thread Joel Sing
CVSROOT:/cvs Module name:src Changes by: js...@cvs.openbsd.org 2022/03/17 11:17:58 Modified files: lib/libcrypto/asn1: a_string.c Log message: Rework ASN1_STRING_set() Rework ASN1_STRING_set() so that we always clear and free an existing allocation, prior to storing th

<    3   4   5   6   7   8   9   10   11   12   >