]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
documented behavior.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 31 May 2012 07:16:25 +0000 (09:16 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 31 May 2012 07:16:25 +0000 (09:16 +0200)
lib/x509/privkey.c

index 5f9496b365d03e1c24f209279329ad9dfa02d919..b777caa656d5c8d2c968e737c5714ea3e8eff0d8 100644 (file)
@@ -421,8 +421,9 @@ error:
  * native #gnutls_x509_privkey_t format. The output will be stored in
  * @key .
  *
- * If the key is PEM encoded it should have a header of "RSA PRIVATE
- * KEY", or "DSA PRIVATE KEY".
+ * If the key is PEM encoded it should have a header that contains "PRIVATE
+ * KEY". Note that this function falls back to PKCS #8 decoding without
+ * password, if the default format fails to import.
  *
  * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
  *   negative error value.