Skip to content

Commit 0d46faa

Browse files
committed
Update documentation to enable encrypted keys.
1 parent d3c9b58 commit 0d46faa

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $ ./autogen.sh
5050
$ git clone https://github.com/wolfssl/wolfssl
5151
$ cd wolfssl
5252
$ ./autogen.sh
53-
$ ./configure --enable-sniffer --enable-curve25519 --enable-curve448 CFLAGS="-DWOLFSSL_DH_EXTRA"
53+
$ ./configure --enable-sniffer --enable-curve25519 --enable-curve448 --enable-enckeys CFLAGS="-DWOLFSSL_DH_EXTRA"
5454
$ make
5555
$ make check # (optional, but highly recommended)
5656
$ sudo make install

src/mod_tls.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,12 @@ int wolfTlsSetKey(WOLFSSL_CTX* ctx, const char* keyFile,
191191

192192
if (keyFile) {
193193
if (fileType == WOLFSSL_FILETYPE_PEM && keyPassword) {
194+
#ifdef WOLFSSL_ENCRYPTED_KEYS
194195
wolfSSL_CTX_set_default_passwd_cb_userdata(ctx, (void*)keyPassword);
196+
#else
197+
XLOG(WOLFKM_LOG_WARN, "Key password support not enabled. "
198+
"Please build wolfSSL with --enable-enckeys\n");
199+
#endif
195200
}
196201
ret = wolfSSL_CTX_use_PrivateKey_file(ctx, keyFile, fileType);
197202
}

wolfkeymgr/sock_mgr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct SvcConn {
152152

153153
typedef struct SvcConnList {
154154
SvcConn* head;
155-
/* no locking needed, this list is only accedded by the working thread */
155+
/* no locking needed, this list is only accepted by the working thread */
156156
} SvcConnList;
157157

158158

0 commit comments

Comments
 (0)