From 13a3d6d9883be25145033686b2331d3249a3491c Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 10 Oct 2023 12:52:59 +0200 Subject: [PATCH] [winpr,tools] warn if unimplemented function called --- winpr/tools/makecert/makecert.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/winpr/tools/makecert/makecert.c b/winpr/tools/makecert/makecert.c index 4e4fca9c1..ac994a6cc 100644 --- a/winpr/tools/makecert/makecert.c +++ b/winpr/tools/makecert/makecert.c @@ -601,7 +601,8 @@ out_fail: free(fullpath); return ret; #else - return 1; + WLog_ERR(TAG, "%s only supported with OpenSSL", __func__); + return -1; #endif } @@ -682,7 +683,8 @@ out_fail: free(fullpath); return ret; #else - return 1; + WLog_ERR(TAG, "%s only supported with OpenSSL", __func__); + return -1; #endif } @@ -1122,8 +1124,11 @@ int makecert_context_process(MAKECERT_CONTEXT* context, int argc, char** argv) } } -#endif return 0; +#else + WLog_ERR(TAG, "%s only supported with OpenSSL", __func__); + return -1; +#endif } MAKECERT_CONTEXT* makecert_context_new(void)