Skip to content

Commit 99527be

Browse files
committed
bsdkm: review cleanup.
1 parent b33a856 commit 99527be

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

bsdkm/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ fips_hash=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
6666
placeholder.
6767
```sh
6868
$ sudo kldload bsdkm/libwolfssl.ko
69-
Password:
7069
kldload: an error occurred while loading module bsdkm/libwolfssl.ko. Please check dmesg(8) for more details.
7170
```
7271
@@ -88,6 +87,11 @@ Id Refs Name
8887
523 1 libwolfssl_fips
8988
```
9089
90+
Unload with
91+
```
92+
sudo kldunload libwolfssl
93+
```
94+
9195
On unload, the FIPS self-test will run a final time and print its status
9296
to system message buffer:
9397

bsdkm/bsdkm_wc_port.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@
4444
* extern global version from /usr/src/sys/sys/systm.h */
4545
#define version wc_version
4646

47-
#define wc_km_printf printf
48-
#define wc_km_print_err printf
47+
/* printf and logging defines */
48+
#define wc_km_printf printf
49+
#define WOLFSSL_DEBUG_PRINTF_FN printf
4950

5051
/* str and char utility functions */
5152
#define XATOI(s) ({ \

linuxkm/linuxkm_wc_port.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,8 +1430,6 @@
14301430
#endif
14311431
#define printf(...) wc_km_printf(__VA_ARGS__)
14321432

1433-
#define wc_km_print_err pr_err
1434-
14351433
#ifdef HAVE_FIPS
14361434
extern void fipsEntry(void);
14371435
#endif

0 commit comments

Comments
 (0)