X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fauths%2Ftls.c;h=325e7b4c746fe732f59421969a001a0635264c1a;hb=d56e798eb66ac044ff22f0daa2185549f5d49632;hp=51c096cd0875c5d5f7df3de1b5c5f263600a384d;hpb=b3ef41c94af9aefec7b6855cf2ce73ffeaba9d9a;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/auths/tls.c b/src/src/auths/tls.c index 51c096cd0..325e7b4c7 100644 --- a/src/src/auths/tls.c +++ b/src/src/auths/tls.c @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) Jeremy Harris 2015 */ +/* Copyright (c) Jeremy Harris 1995 - 2020 */ /* See the file NOTICE for conditions of use and distribution. */ /* This file provides an Exim authenticator driver for @@ -17,13 +17,13 @@ a server to verify a client SSL certificate optionlist auth_tls_options[] = { { "server_param", opt_stringptr, - (void *)(offsetof(auth_tls_options_block, server_param1)) }, + OPT_OFF(auth_tls_options_block, server_param1) }, { "server_param1", opt_stringptr, - (void *)(offsetof(auth_tls_options_block, server_param1)) }, + OPT_OFF(auth_tls_options_block, server_param1) }, { "server_param2", opt_stringptr, - (void *)(offsetof(auth_tls_options_block, server_param2)) }, + OPT_OFF(auth_tls_options_block, server_param2) }, { "server_param3", opt_stringptr, - (void *)(offsetof(auth_tls_options_block, server_param3)) }, + OPT_OFF(auth_tls_options_block, server_param3) }, }; /* Size of the options list. An extern variable has to be used so that its @@ -40,6 +40,19 @@ auth_tls_options_block auth_tls_option_defaults = { }; +#ifdef MACRO_PREDEF + +/* Dummy values */ +void auth_tls_init(auth_instance *ablock) {} +int auth_tls_server(auth_instance *ablock, uschar *data) {return 0;} +int auth_tls_client(auth_instance *ablock, void * sx, + int timeout, uschar *buffer, int buffsize) {return 0;} + +#else /*!MACRO_PREDEF*/ + + + + /************************************************* * Initialization entry point * *************************************************/ @@ -71,10 +84,11 @@ if (ob->server_param1) auth_vars[expand_nmax++] = expand_string(ob->server_param1); if (ob->server_param2) auth_vars[expand_nmax++] = expand_string(ob->server_param2); -if (ob->server_param2) +if (ob->server_param3) auth_vars[expand_nmax++] = expand_string(ob->server_param3); return auth_check_serv_cond(ablock); } +#endif /*!MACRO_PREDEF*/ /* End of tls.c */