Skip to content

Commit

Permalink
Use PKCS11_MODULE_PATH environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrojnar committed Jan 28, 2016
1 parent e163368 commit 9576c9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
NEWS for Libp11 -- History of user visible changes

New in 0.4.0; unreleased;
* Use PKCS11_MODULE_PATH environment variable (Doug Engert)
* Added support for building against OpenSSL 1.1.0-dev (Doug Engert)
* Added support for ECDH key derivation (Doug Engert)
* Fixed building against OpenSSL 0.9.8 (Michał Trojnara)
Expand Down
2 changes: 2 additions & 0 deletions src/eng_back.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ int pkcs11_init(ENGINE * engine)
*/
(void)engine;

if (mod == NULL)
mod = getenv("PKCS11_MODULE_PATH");
#ifdef DEFAULT_PKCS11_MODULE
if (mod == NULL)
mod = DEFAULT_PKCS11_MODULE;
Expand Down

0 comments on commit 9576c9b

Please sign in to comment.