]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
pkcs12: corrected return type of gnutls_pkcs12_bag_get_type()
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 4 Jun 2016 09:36:34 +0000 (11:36 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 4 Jun 2016 09:36:34 +0000 (11:36 +0200)
lib/includes/gnutls/pkcs12.h
lib/x509/pkcs12_bag.c

index b75efa61c165a7525e1d03187a2b78f3b25705bf..e7864c4f14767bb8824492f7f71fa65195c0f39e 100644 (file)
@@ -109,7 +109,7 @@ typedef enum gnutls_pkcs12_bag_type_t {
        GNUTLS_BAG_UNKNOWN = 20
 } gnutls_pkcs12_bag_type_t;
 
-gnutls_pkcs12_bag_type_t
+int
 gnutls_pkcs12_bag_get_type(gnutls_pkcs12_bag_t bag, unsigned indx);
 int gnutls_pkcs12_bag_get_data(gnutls_pkcs12_bag_t bag, unsigned indx,
                               gnutls_datum_t * data);
index 8b6475c6b70542012628fe4014699290be393121..0f3bf5a7cf3f5928020105fdfc3ddca7dac5ec64 100644 (file)
@@ -91,10 +91,9 @@ void gnutls_pkcs12_bag_deinit(gnutls_pkcs12_bag_t bag)
  *
  * This function will return the bag's type.
  *
- * Returns: On error a negative error value (when casted as integer) or
- *   one of the #gnutls_pkcs12_bag_type_t enumerations.
+ * Returns: On error a negative error value or one of the #gnutls_pkcs12_bag_type_t enumerations.
  **/
-gnutls_pkcs12_bag_type_t
+int
 gnutls_pkcs12_bag_get_type(gnutls_pkcs12_bag_t bag, unsigned indx)
 {
        if (bag == NULL) {