aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2006-05-30 07:43:39 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2006-05-30 07:43:39 +0000
commitcdffecf3ba87d62a2d5e26f4e9efdba81d658ab5 (patch)
tree17d043be509ecfb039f1bc83839b82833b3d0517 /src/libstrongswan
parentc164f8c4a7606442802e5546a5b3d11bb12a774f (diff)
downloadstrongswan-cdffecf3ba87d62a2d5e26f4e9efdba81d658ab5.tar.bz2
strongswan-cdffecf3ba87d62a2d5e26f4e9efdba81d658ab5.tar.xz
added has_key parameter to log_certificates()
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_ */