#
7523ec26 |
| 08-Jul-2024 |
beck <beck@openbsd.org> |
Hide global _it variables in asn1.h
ok tb@
|
#
acf64401 |
| 05-Jul-2023 |
beck <beck@openbsd.org> |
Hide symbols in asn1 and bio
ok jsing@
|
#
c9675a23 |
| 26-Nov-2022 |
tb <tb@openbsd.org> |
Make internal header file names consistent
Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names used for internal headers. Move all these headers we inherited from OpenSSL to *_l
Make internal header file names consistent
Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names used for internal headers. Move all these headers we inherited from OpenSSL to *_local.h, reserving the name *_internal.h for our own code. Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h. constant_time_locl.h is moved to constant_time.h since it's special.
Adjust all .c files in libcrypto, libssl and regress.
The diff is mechanical with the exception of tls13_quic.c, where #include <ssl_locl.h> was fixed manually.
discussed with jsing, no objection bcook
show more ...
|
#
3664b3a8 |
| 03-Sep-2022 |
jsing <jsing@openbsd.org> |
Provide c2i_ASN1_ENUMERATED_cbs() and call it from asn1_c2i_primitive().
This avoids asn1_c2i_primitive() from needing knowledge about the internals of ASN1_INTEGER and ASN1_ENUMERATED.
ok tb@
|
#
e9bef705 |
| 10-Aug-2022 |
tb <tb@openbsd.org> |
Cast int64_t to uint64_t for negating
Avoid signed integer overflow by casting an int64_t to uint64_t before negating. Same fix was applied in a_int.c -r1.44, but was forgotten to be applied to a_en
Cast int64_t to uint64_t for negating
Avoid signed integer overflow by casting an int64_t to uint64_t before negating. Same fix was applied in a_int.c -r1.44, but was forgotten to be applied to a_enum.c.
ok jsing
show more ...
|
#
60329c6d |
| 09-Jul-2022 |
tb <tb@openbsd.org> |
Make ASN1_{INTEGER,ENUMERATED}_get() return 0 on NULL again
This is the documented behavior which got lost in the recent rewrite.
Mismatch of documentation and reality pointed out by schwarze
ok j
Make ASN1_{INTEGER,ENUMERATED}_get() return 0 on NULL again
This is the documented behavior which got lost in the recent rewrite.
Mismatch of documentation and reality pointed out by schwarze
ok jsing
show more ...
|
#
365421c1 |
| 25-Jun-2022 |
jsing <jsing@openbsd.org> |
Reuse ASN1_INTEGER functions for ASN1_ENUMERATED_{get,set}()
Instead of having a separate get/set implementation, reuse the ASN1_INTEGER code. Also prepare to provide ASN1_ENUMERATED_{get,set}_int64
Reuse ASN1_INTEGER functions for ASN1_ENUMERATED_{get,set}()
Instead of having a separate get/set implementation, reuse the ASN1_INTEGER code. Also prepare to provide ASN1_ENUMERATED_{get,set}_int64().
ok beck@ tb@
show more ...
|
#
1ee5d7ed |
| 25-Dec-2021 |
jsing <jsing@openbsd.org> |
Indent goto labels for diffability.
Whitespace change only.
|
#
71d0c207 |
| 25-Dec-2021 |
jsing <jsing@openbsd.org> |
Consolidate code/templates for ASN.1 types.
Where an ASN.1 type has its own file, move the ASN.1 item template and template related functions into the file.
Discussed with tb@
|
#
e77f3548 |
| 15-Dec-2021 |
jsing <jsing@openbsd.org> |
Consolidate various ASN.1 code.
Rather than having multiple files per type (with minimal code per file), use one file per type (a_<type>.c).
No functional change.
Discussed with tb@
|
#
48eb3f71 |
| 28-Apr-2019 |
tb <tb@openbsd.org> |
Avoid an undefined shift in ASN1_ENUMERATED_get(). (same fix as in a_int.c rev 1.34)
Fixes oss-fuzz issue #13809
ok beck, jsing
|
#
9b3891c7 |
| 25-Apr-2018 |
tb <tb@openbsd.org> |
Add const to functions in asn1/asn1.h as they did in OpenSSL. BIO_f_asn1() will be taken care of later.
Tested in a bulk by sthen ok bcook jca jsing
|
#
5067ae9f |
| 29-Jan-2017 |
beck <beck@openbsd.org> |
Send the function codes from the error functions to the bit bucket, as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@
|
#
bb53bdea |
| 30-Sep-2015 |
jsing <jsing@openbsd.org> |
Replace M_ASN1_ENUMERATED_(free|new) with ASN1_ENUMERATED_(free|new).
|
#
36787e01 |
| 21-Sep-2014 |
miod <miod@openbsd.org> |
a_enum.c used to be a copy of a_int.c with s/INTEGER/ENUMERATED/g , but some changes an a_int.c did not get applied to a_enum.c; despite style changes, make sure BN_to_ASN1_ENUMERATED() correctly han
a_enum.c used to be a copy of a_int.c with s/INTEGER/ENUMERATED/g , but some changes an a_int.c did not get applied to a_enum.c; despite style changes, make sure BN_to_ASN1_ENUMERATED() correctly handles a zero value the same way BN_to_ASN1_INTEGER() does.
ok bcook@ beck@ jsing@
show more ...
|
#
b6ab114e |
| 11-Jul-2014 |
jsing <jsing@openbsd.org> |
Only import cryptlib.h in the four source files that actually need it. Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need t
Only import cryptlib.h in the four source files that actually need it. 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@
show more ...
|
#
c3d6a26a |
| 12-Jun-2014 |
deraadt <deraadt@openbsd.org> |
tags as requested by miod and tedu
|
#
0b1e3033 |
| 30-May-2014 |
deraadt <deraadt@openbsd.org> |
more: no need for null check before free ok tedu guenther
|
#
6dae11f4 |
| 21-Apr-2014 |
deraadt <deraadt@openbsd.org> |
improve realloc/calloc/malloc patterns; ok guenther
|
#
0cd2744a |
| 18-Apr-2014 |
jsing <jsing@openbsd.org> |
More KNF.
|
#
cc777fd4 |
| 18-Apr-2014 |
tedu <tedu@openbsd.org> |
lob a few more knf grenades in here to soften things up.
|
#
93a4b0e0 |
| 18-Apr-2014 |
tedu <tedu@openbsd.org> |
putting most of the braces in the right column is the very least we can do.
|
#
6f3a6cb1 |
| 17-Apr-2014 |
beck <beck@openbsd.org> |
Change library to use intrinsic memory allocation functions instead of OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
|
#
4fcf65c5 |
| 06-Sep-2008 |
djm <djm@openbsd.org> |
resolve conflicts
|
#
40d8aef3 |
| 29-Apr-2005 |
djm <djm@openbsd.org> |
resolve conflicts
|