diff options
Diffstat (limited to 'src/lib/libcrypto/conf/conf_def.c')
| -rw-r--r-- | src/lib/libcrypto/conf/conf_def.c | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/src/lib/libcrypto/conf/conf_def.c b/src/lib/libcrypto/conf/conf_def.c index d796b8454e..f0baee5261 100644 --- a/src/lib/libcrypto/conf/conf_def.c +++ b/src/lib/libcrypto/conf/conf_def.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: conf_def.c,v 1.39 2024/08/31 09:29:03 tb Exp $ */ | 1 | /* $OpenBSD: conf_def.c,v 1.40 2024/08/31 09:34:05 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 | * |
| @@ -108,19 +108,6 @@ def_init_default(CONF *conf) | |||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | static int | 110 | static int |
| 111 | def_init_WIN32(CONF *conf) | ||
| 112 | { | ||
| 113 | if (conf == NULL) | ||
| 114 | return 0; | ||
| 115 | |||
| 116 | conf->meth = NCONF_WIN32(); | ||
| 117 | conf->meth_data = (void *)CONF_type_win32; | ||
| 118 | conf->data = NULL; | ||
| 119 | |||
| 120 | return 1; | ||
| 121 | } | ||
| 122 | |||
| 123 | static int | ||
| 124 | def_destroy_data(CONF *conf) | 111 | def_destroy_data(CONF *conf) |
| 125 | { | 112 | { |
| 126 | if (conf == NULL) | 113 | if (conf == NULL) |
| @@ -661,29 +648,9 @@ static CONF_METHOD default_method = { | |||
| 661 | .load = def_load, | 648 | .load = def_load, |
| 662 | }; | 649 | }; |
| 663 | 650 | ||
| 664 | static CONF_METHOD WIN32_method = { | ||
| 665 | "WIN32", | ||
| 666 | def_create, | ||
| 667 | def_init_WIN32, | ||
| 668 | def_destroy, | ||
| 669 | def_destroy_data, | ||
| 670 | def_load_bio, | ||
| 671 | def_dump, | ||
| 672 | def_is_number, | ||
| 673 | def_to_int, | ||
| 674 | def_load, | ||
| 675 | }; | ||
| 676 | |||
| 677 | CONF_METHOD * | 651 | CONF_METHOD * |
| 678 | NCONF_default(void) | 652 | NCONF_default(void) |
| 679 | { | 653 | { |
| 680 | return &default_method; | 654 | return &default_method; |
| 681 | } | 655 | } |
| 682 | LCRYPTO_ALIAS(NCONF_default); | 656 | LCRYPTO_ALIAS(NCONF_default); |
| 683 | |||
| 684 | CONF_METHOD * | ||
| 685 | NCONF_WIN32(void) | ||
| 686 | { | ||
| 687 | return &WIN32_method; | ||
| 688 | } | ||
| 689 | LCRYPTO_ALIAS(NCONF_WIN32); | ||
