|
13 | 13 | * copies or substantial portions of the Software. |
14 | 14 | * |
15 | 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
16 | | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
| 16 | + * IMPLIED, INCLUDINqG BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
17 | 17 | * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
18 | 18 | * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
19 | 19 | * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
69 | 69 | * implementation that uses OpenSSL and POSIX sockets. |
70 | 70 | * |
71 | 71 | * @note For this transport implementation, the socket descriptor and |
72 | | - * SSL context is used. |
| 72 | + * SSL context are kept. |
73 | 73 | */ |
74 | 74 | typedef struct OpensslParams |
75 | 75 | { |
@@ -137,7 +137,15 @@ typedef struct OpensslCredentials |
137 | 137 | */ |
138 | 138 | const char * pRootCaPath; /**< @brief Filepath string to the trusted server root CA. */ |
139 | 139 | const char * pClientCertPath; /**< @brief Filepath string to the client certificate. */ |
140 | | - const char * pPrivateKeyPath; /**< @brief Filepath string to the client certificate's private key. */ |
| 140 | + const char * pPrivateKeyPath; /**< @brief Filepath string or PKCS11 URI to the client certificate's private key. */ |
| 141 | + |
| 142 | + /** |
| 143 | + * @brief Configuration options when using a pkcs11 module. |
| 144 | + * |
| 145 | + * @note These strings must be NULL-terminated because the OpenSSL API requires them to be. |
| 146 | + */ |
| 147 | + const char * pP11ModulePath; /**< @brief Filepath string to the desired pkcs11 module. */ |
| 148 | + const char * pP11ModulePin; /**< @brief String containing the pin (if required) for the referenced pkcs11 module */ |
141 | 149 | } OpensslCredentials_t; |
142 | 150 |
|
143 | 151 | /** |
|
0 commit comments