security: insert OpenSSL initialization call in PrivateKey::loadPkcs8
Change-Id: I71dc0c3ac71fa5db4f3be8ce51aea06e4cf7c088
Refs: #4204
diff --git a/src/security/transform/private-key.hpp b/src/security/transform/private-key.hpp
index 3eb1d7a..500386b 100644
--- a/src/security/transform/private-key.hpp
+++ b/src/security/transform/private-key.hpp
@@ -1,5 +1,5 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
* Copyright (c) 2013-2017 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
@@ -53,9 +53,10 @@
/**
* @brief Callback for application to handle password input
*
- * Password should be stored in @p buf and should not be longer than @p size. It is
- * recommended to ask the user to verify the passphrase if @p shouldConfirm is true, e.g., by
- * prompting for the password twice.
+ * The password must be written to @p buf and must not be longer than @p bufSize chars.
+ * It is recommended to ask the user to verify the password if @p shouldConfirm is true,
+ * e.g., by prompting for it twice. The callback must return the number of characters
+ * in the password or 0 if an error occurred.
*/
typedef function<int(char* buf, size_t bufSize, bool shouldConfirm)> PasswordCallback;