aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan')
-rwxr-xr-xsrc/libstrongswan/crypto/x509.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstrongswan/crypto/x509.h b/src/libstrongswan/crypto/x509.h
index 8e13dfc2a..7f9693627 100755
--- a/src/libstrongswan/crypto/x509.h
+++ b/src/libstrongswan/crypto/x509.h
@@ -128,8 +128,9 @@ struct x509_t {
* @param this certificate to log
* @param logger logger to be used
* @param utc log dates either in UTC or local time
+ * @param has_key a matching private key is available
*/
- void (*log_certificate) (x509_t *this, logger_t *logger, bool utc);
+ void (*log_certificate) (x509_t *this, logger_t *logger, bool utc, bool has_key);
};
/**
@@ -146,10 +147,11 @@ x509_t *x509_create_from_chunk(chunk_t chunk);
* @brief Read a x509 certificate from a DER encoded file.
*
* @param filename file containing DER encoded data
+ * @param label label describing kind of certificate
* @return created x509_t certificate, or NULL if invalid.
*
* @ingroup transforms
*/
-x509_t *x509_create_from_file(const char *filename);
+x509_t *x509_create_from_file(const char *filename, const char *label);
#endif /* X509_H_ */