#
cedac418 |
| 16-Feb-2023 |
tb <tb@openbsd.org> |
libressl *_namespace.h: adjust *_ALIAS() to require a semicolon
LCRYPTO_ALIAS() and LSSL_ALIAS() contained a trailing semicolon. This does not conform to style(9), breaks editors and ctags and (most
libressl *_namespace.h: adjust *_ALIAS() to require a semicolon
LCRYPTO_ALIAS() and LSSL_ALIAS() contained a trailing semicolon. This does not conform to style(9), breaks editors and ctags and (most importantly) my workflow. Fix this by neutering them with asm("") so that -Wpedantic doesn't complain. There's precedent in libc's namespace.h
fix suggested by & ok jsing
show more ...
|
#
bcc93ea7 |
| 23-Dec-2022 |
jsing <jsing@openbsd.org> |
Consistently check for NULL early.
Also be more consistent with variable naming.
ok tb@
|
#
7218a23d |
| 23-Dec-2022 |
jsing <jsing@openbsd.org> |
Fix an unchecked strdup() in UI_create_method().
ok tb@
|
#
d533e99e |
| 23-Dec-2022 |
jsing <jsing@openbsd.org> |
Make UI_destroy_method() NULL safe.
ok tb@
|
#
50779922 |
| 23-Dec-2022 |
jsing <jsing@openbsd.org> |
Remove unhelpful comment.
Remove a comment that tells you not to call a function that internally calls free, with a stack allocated pointer...
ok tb@
|
#
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 ...
|
#
216028ee |
| 12-Nov-2022 |
beck <beck@openbsd.org> |
Hide symbols in libcrypto/ui
ok jsing@
|
#
a0462387 |
| 25-Sep-2020 |
tb <tb@openbsd.org> |
KNF for a few comments and indent a label
|
#
91f12599 |
| 25-Sep-2020 |
tb <tb@openbsd.org> |
Remove some dangling elses for consistency with the rest of the file
|
#
c4393b6d |
| 25-Sep-2020 |
tb <tb@openbsd.org> |
Simplify UI_new_method()
Use calloc() instead of malloc() and setting all members manually to 0. Avoid unnecessary else branch.
|
#
7f00cb0d |
| 25-Sep-2020 |
tb <tb@openbsd.org> |
Move variable declaration to the top of UI_set_result and ditch a pointless local scope.
suggested by jsing
|
#
9656a395 |
| 25-Sep-2020 |
tb <tb@openbsd.org> |
The default branch of a switch somehow got moved inside of a pointless local scope of a case branch. Move it into the proper location.
No binary change on amd64.
"sure" jsing
|
#
a37673fd |
| 25-Sep-2020 |
tb <tb@openbsd.org> |
Simplify call to ERR_print_errors_cb()
There is no reason for print_error()'s third argument to be a UI *. It may just as well be a void * to match what ERR_print_errors_cb() expects. This avoids ca
Simplify call to ERR_print_errors_cb()
There is no reason for print_error()'s third argument to be a UI *. It may just as well be a void * to match what ERR_print_errors_cb() expects. This avoids casting the function pointer. Also, there's no need for a (void *) cast.
ok jsing
show more ...
|
#
56735cd3 |
| 24-Sep-2020 |
tb <tb@openbsd.org> |
Error out if ok_chars and cancel_chars overlap
It is a bit silly to push an error on the stack without erroring out, so error out if the ok_chars and cancel_chars overlap.
ok jsing
|
#
cc93904d |
| 24-Sep-2020 |
tb <tb@openbsd.org> |
Fix a number of leaks in the UI_dup_* functions
If any of general_allocate_{prompt,string,boolean}() fail, the UI_dup_* functions may leak the strings they strduped beforehand. Instead, use strdup i
Fix a number of leaks in the UI_dup_* functions
If any of general_allocate_{prompt,string,boolean}() fail, the UI_dup_* functions may leak the strings they strduped beforehand. Instead, use strdup inside these functions, so we can free as necessary. This makes the UI_add_* and UI_dup_* simple wrappers around general_allocate_{string,boolean}() that differ only in passing a Boolean that indicates whether or not to use strdup.
Make a general cleanup pass over these functions, simplify the logic and make it overall a bit easier to follow. While there, use strcspn() instead of a handrolled variant.
The only changes in behavior are that ERR_R_MALLOC_FAILURE is now pushed onto the stack a bit more often and that UI_dup_input_string() now returns -1 on failure to dup prompt like all the other UI_dup_* functions. This is not a problem since the manual already documents that errors are signaled with <= 0. The only consumer of this function according to Debian's codesearch is libp11, I sent them a PR to fix their (already broken) error handling.
Addresses about 10 errors thrown by the LLVM static analyzer in ui/.
ok jsing
show more ...
|
#
c95ba6a2 |
| 24-Sep-2020 |
tb <tb@openbsd.org> |
Push ERR_R_MALLOC_FAILURE onto the error stack
If sk_UI_STRING_new_null() fails, this must be due to a memory error, so signal this to the user.
ok jsing
|
#
8804eef0 |
| 24-Sep-2020 |
tb <tb@openbsd.org> |
Make free_strings() NULL safe
ok jsing
|
#
a3cf9474 |
| 02-Jun-2018 |
tb <tb@openbsd.org> |
Add a const qualifier to the argument of UI_method_get_closer(), UI_method_get_flusher(), UI_method_get_opener(), UI_method_get_prompt_constructor(), UI_method_get_reader(), and UI_method_get_writer(
Add a const qualifier to the argument of UI_method_get_closer(), UI_method_get_flusher(), UI_method_get_opener(), UI_method_get_prompt_constructor(), UI_method_get_reader(), and UI_method_get_writer().
tested in a bulk build by sthen ok jsing
show more ...
|
#
b6108fce |
| 19-May-2018 |
tb <tb@openbsd.org> |
UI_METHOD *UI_create_method(const char *name). ^^^^^ tested in a bulk build by sthen ok 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@
|
#
b549695b |
| 28-Apr-2016 |
tedu <tedu@openbsd.org> |
don't go into an unbreakable infinite loop during operations such as reading passwords. allow ^C to break. the pain was mine, the fix is miod's.
|
#
569a82d4 |
| 10-Feb-2015 |
jsing <jsing@openbsd.org> |
Remove more IMPLEMENT_STACK_OF noops that have been hiding for the last 15 years.
|
#
dda2f39b |
| 03-Oct-2014 |
doug <doug@openbsd.org> |
Use string literals in printf style calls so gcc's -Wformat works.
ok tedu@, miod@
|
#
69442892 |
| 22-Jul-2014 |
beck <beck@openbsd.org> |
Kill a bunch more BUF_strdup's - these are converted to have a check for NULL before an intrinsic strdup. ok miod@
|
#
74a2cbdc |
| 13-Jul-2014 |
beck <beck@openbsd.org> |
The bell tolls for BUF_strdup - Start the migration to using intrinsics. This is the easy ones, a few left to check one at a time. ok miod@ deraadt@
|