Mercurial > hg > orthanc
diff Plugins/Include/orthanc/OrthancCPlugin.h @ 2022:fefbe71c2272
Possibility to use PKCS#11 authentication for hardware security modules with Orthanc peers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 17 Jun 2016 17:09:50 +0200 |
parents | 9c9332e486ca |
children | 9f61ca1e3eb3 |
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h Wed Jun 15 17:20:52 2016 +0200 +++ b/Plugins/Include/orthanc/OrthancCPlugin.h Fri Jun 17 17:09:50 2016 +0200 @@ -4946,6 +4946,7 @@ const char* certificateFile; const char* certificateKeyFile; const char* certificateKeyPassword; + uint8_t pkcs11; } _OrthancPluginCallHttpClient2; @@ -4975,6 +4976,7 @@ * (can be <tt>NULL</tt> if no client certificate or if not using HTTPS). * @param certificateKeyPassword Password to unlock the key of the client certificate * (can be <tt>NULL</tt> if no client certificate or if not using HTTPS). + * @param pkcs11 Enable PKCS#11 client authentication for hardware security modules and smart cards. * @return 0 if success, or the error code if failure. **/ ORTHANC_PLUGIN_INLINE OrthancPluginErrorCode OrthancPluginHttpClient( @@ -4993,7 +4995,8 @@ uint32_t timeout, const char* certificateFile, const char* certificateKeyFile, - const char* certificateKeyPassword) + const char* certificateKeyPassword, + uint8_t pkcs11) { _OrthancPluginCallHttpClient2 params; memset(¶ms, 0, sizeof(params)); @@ -5013,6 +5016,7 @@ params.certificateFile = certificateFile; params.certificateKeyFile = certificateKeyFile; params.certificateKeyPassword = certificateKeyPassword; + params.pkcs11 = pkcs11; return context->InvokeService(context, _OrthancPluginService_CallHttpClient2, ¶ms); }