Skip to content

Commit 9ac0b64

Browse files
Move configure option example to main PK callbacks section
Co-Authored-By: Anthony H <[email protected]>
1 parent c5c0e96 commit 9ac0b64

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

wolfSSL/src/chapter06.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ To use Atomic Record Layer callbacks, wolfSSL needs to be compiled using the `--
107107
108108
wolfSSL provides Public Key (PK) callbacks for users who wish to have more control over DH, ECC, Ed25519, X25519, Ed448, X448, and RSA operations during the SSL/TLS connection.
109109
110+
To use Public Key callbacks, wolfSSL needs to be compiled with `HAVE_PK_CALLBACKS` defined. This can be done using the configure option:
111+
112+
```sh
113+
./configure --enable-pkcallbacks
114+
```
115+
116+
Additionally, each callback type requires its specific feature to be enabled (e.g., `HAVE_DH`, `HAVE_ED25519`, etc.).
117+
110118
### DH Callbacks
111119

112120
wolfSSL provides DH (Diffie-Hellman) callbacks for users who wish to have more control over DH key generation and key agreement operations during the SSL/TLS connection.
@@ -137,11 +145,7 @@ The user can set a context per WOLFSSL object (session) with `wolfSSL_SetDhAgree
137145
138146
Example callbacks can be found in `wolfssl/test.h`, under `myDhCallback()`. Usage can be seen in the wolfSSL example client.
139147
140-
To use DH callbacks, wolfSSL needs to be compiled with `HAVE_PK_CALLBACKS` and `HAVE_DH` defined. This can be done using the configure option:
141-
142-
```sh
143-
./configure --enable-pkcallbacks
144-
```
148+
To use DH callbacks, wolfSSL needs to be compiled with `HAVE_DH` defined.
145149
146150
### Ed25519 Callbacks
147151

0 commit comments

Comments
 (0)