diff options
| author | tb <> | 2025-01-02 13:10:03 +0000 |
|---|---|---|
| committer | tb <> | 2025-01-02 13:10:03 +0000 |
| commit | 615194fc158a5d23d4587eda0dda3c781f62bfad (patch) | |
| tree | c4838fa7396ce47a209dde85f2982a12ac8265be /src/usr.bin/openssl/apps.h | |
| parent | c0e2e3a37259fa25952986da7dc8cad02683d400 (diff) | |
| download | openbsd-615194fc158a5d23d4587eda0dda3c781f62bfad.tar.gz openbsd-615194fc158a5d23d4587eda0dda3c781f62bfad.tar.bz2 openbsd-615194fc158a5d23d4587eda0dda3c781f62bfad.zip | |
Merge s_apps.h into apps.h
discussed with jsing
Diffstat (limited to 'src/usr.bin/openssl/apps.h')
| -rw-r--r-- | src/usr.bin/openssl/apps.h | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/apps.h b/src/usr.bin/openssl/apps.h index f8d67ccacd..c8d6154b9f 100644 --- a/src/usr.bin/openssl/apps.h +++ b/src/usr.bin/openssl/apps.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: apps.h,v 1.40 2025/01/02 12:36:21 tb Exp $ */ | 1 | /* $OpenBSD: apps.h,v 1.41 2025/01/02 13:10:03 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -126,6 +126,8 @@ | |||
| 126 | #include <openssl/ocsp.h> | 126 | #include <openssl/ocsp.h> |
| 127 | #endif | 127 | #endif |
| 128 | 128 | ||
| 129 | #include <openssl/ssl.h> | ||
| 130 | |||
| 129 | #include <unistd.h> | 131 | #include <unistd.h> |
| 130 | 132 | ||
| 131 | /* numbers in us */ | 133 | /* numbers in us */ |
| @@ -364,4 +366,42 @@ int verify_main(int argc, char **argv); | |||
| 364 | int version_main(int argc, char **argv); | 366 | int version_main(int argc, char **argv); |
| 365 | int x509_main(int argc, char **argv); | 367 | int x509_main(int argc, char **argv); |
| 366 | 368 | ||
| 369 | #define PORT 4433 | ||
| 370 | #define PORT_STR "4433" | ||
| 371 | #define PROTOCOL "tcp" | ||
| 372 | |||
| 373 | extern int verify_depth; | ||
| 374 | extern int verify_return_error; | ||
| 375 | |||
| 376 | int do_server(int port, int type, int *ret, | ||
| 377 | int (*cb)(int s, unsigned char *context), | ||
| 378 | unsigned char *context, int naccept); | ||
| 379 | #ifdef HEADER_X509_H | ||
| 380 | int verify_callback(int ok, X509_STORE_CTX *ctx); | ||
| 381 | #endif | ||
| 382 | #ifdef HEADER_SSL_H | ||
| 383 | int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file); | ||
| 384 | int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key); | ||
| 385 | #endif | ||
| 386 | int ssl_print_tmp_key(BIO *out, SSL *s); | ||
| 387 | int init_client(int *sock, char *server, char *port, int type, int af); | ||
| 388 | int extract_port(char *str, short *port_ptr); | ||
| 389 | int extract_host_port(char *str, char **host_ptr, unsigned char *ip, char **p); | ||
| 390 | |||
| 391 | long bio_dump_callback(BIO *bio, int cmd, const char *argp, int argi, | ||
| 392 | long argl, long ret); | ||
| 393 | |||
| 394 | #ifdef HEADER_SSL_H | ||
| 395 | void apps_ssl_info_callback(const SSL *s, int where, int ret); | ||
| 396 | void msg_cb(int write_p, int version, int content_type, const void *buf, | ||
| 397 | size_t len, SSL *ssl, void *arg); | ||
| 398 | void tlsext_cb(SSL *s, int client_server, int type, unsigned char *data, | ||
| 399 | int len, void *arg); | ||
| 400 | #endif | ||
| 401 | |||
| 402 | int generate_cookie_callback(SSL *ssl, unsigned char *cookie, | ||
| 403 | unsigned int *cookie_len); | ||
| 404 | int verify_cookie_callback(SSL *ssl, const unsigned char *cookie, | ||
| 405 | unsigned int cookie_len); | ||
| 406 | |||
| 367 | #endif | 407 | #endif |
