diff options
Diffstat (limited to 'src/lib/libcrypto/ui')
| -rw-r--r-- | src/lib/libcrypto/ui/ui_lib.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/ui/ui_openssl.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c index 73d899afcc..cc9de59c19 100644 --- a/src/lib/libcrypto/ui/ui_lib.c +++ b/src/lib/libcrypto/ui/ui_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ui_lib.c,v 1.51 2023/02/16 08:38:17 tb Exp $ */ | 1 | /* $OpenBSD: ui_lib.c,v 1.52 2025/05/10 05:54:39 tb Exp $ */ |
| 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
| 3 | * project 2001. | 3 | * project 2001. |
| 4 | */ | 4 | */ |
| @@ -61,9 +61,9 @@ | |||
| 61 | #include <openssl/opensslconf.h> | 61 | #include <openssl/opensslconf.h> |
| 62 | 62 | ||
| 63 | #include <openssl/buffer.h> | 63 | #include <openssl/buffer.h> |
| 64 | #include <openssl/err.h> | ||
| 65 | #include <openssl/ui.h> | 64 | #include <openssl/ui.h> |
| 66 | 65 | ||
| 66 | #include "err_local.h" | ||
| 67 | #include "ui_local.h" | 67 | #include "ui_local.h" |
| 68 | 68 | ||
| 69 | static const UI_METHOD *default_UI_meth = NULL; | 69 | static const UI_METHOD *default_UI_meth = NULL; |
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c index 3ace3a4e75..26d3e44f69 100644 --- a/src/lib/libcrypto/ui/ui_openssl.c +++ b/src/lib/libcrypto/ui/ui_openssl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ui_openssl.c,v 1.29 2025/03/09 15:25:53 tb Exp $ */ | 1 | /* $OpenBSD: ui_openssl.c,v 1.30 2026/03/10 05:28:31 deraadt Exp $ */ |
| 2 | /* Written by Richard Levitte (richard@levitte.org) and others | 2 | /* Written by Richard Levitte (richard@levitte.org) and others |
| 3 | * for the OpenSSL project 2001. | 3 | * for the OpenSSL project 2001. |
| 4 | */ | 4 | */ |
| @@ -300,9 +300,9 @@ open_console(UI *ui) | |||
| 300 | is_a_tty = 1; | 300 | is_a_tty = 1; |
| 301 | 301 | ||
| 302 | #define DEV_TTY "/dev/tty" | 302 | #define DEV_TTY "/dev/tty" |
| 303 | if ((tty_in = fopen(DEV_TTY, "r")) == NULL) | 303 | if ((tty_in = fopen(DEV_TTY, "re")) == NULL) |
| 304 | tty_in = stdin; | 304 | tty_in = stdin; |
| 305 | if ((tty_out = fopen(DEV_TTY, "w")) == NULL) | 305 | if ((tty_out = fopen(DEV_TTY, "we")) == NULL) |
| 306 | tty_out = stderr; | 306 | tty_out = stderr; |
| 307 | 307 | ||
| 308 | if (tcgetattr(fileno(tty_in), &tty_orig) == -1) { | 308 | if (tcgetattr(fileno(tty_in), &tty_orig) == -1) { |
