Skip to content

Commit bc04f84

Browse files
author
Andras Fekete
committed
Enable logging in wolfssl
1 parent 445f6ac commit bc04f84

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/wp_wolfprov.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#include "wolfprovider/wp_wolfprov.h"
3434
#include "wolfprovider/alg_funcs.h"
3535

36+
#include "wolfssl/wolfcrypt/logging.h"
37+
3638
const char* wolfprovider_id = "libwolfprov";
3739

3840
/* Core function that gets the table of parameters. */
@@ -1133,6 +1135,11 @@ int wolfssl_provider_init(const OSSL_CORE_HANDLE* handle,
11331135
int ok = 1;
11341136
OSSL_FUNC_core_get_libctx_fn* c_get_libctx = NULL;
11351137

1138+
#ifdef WOLFPROV_DEBUG
1139+
ok = (wolfProv_Debugging_ON() == 0) && (wolfSSL_Debugging_ON() == 0);
1140+
wolfSSL_SetLoggingPrefix("wolfSSL");
1141+
#endif
1142+
11361143
for (; in->function_id != 0; in++) {
11371144
switch (in->function_id) {
11381145
case OSSL_FUNC_CORE_GETTABLE_PARAMS:

0 commit comments

Comments
 (0)