krb5_wrap: Fix documentation of smb_krb5_principal_get_realm()
authorAndreas Schneider <asn@samba.org>
Mon, 29 Aug 2016 15:11:32 +0000 (17:11 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 Aug 2016 18:59:16 +0000 (20:59 +0200)
Create a valid doxygen documentation.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/krb5_wrap/krb5_samba.c

index b797989ebb2798c5c3883dfa7b3a3b8ab399c57c..0de12c63d254c31e5ad95f381a22503838841f74 100644 (file)
@@ -2510,19 +2510,17 @@ krb5_error_code smb_krb5_make_pac_checksum(TALLOC_CTX *mem_ctx,
 }
 
 
-/*
- * smb_krb5_principal_get_realm
- *
+/**
  * @brief Get realm of a principal
  *
- * @param[in] context          The krb5_context
- * @param[in] principal                The principal
- * @return pointer to the realm
+ * @param[in] context   The library context
+ *
+ * @param[in] principal The principal to get the realm from.
  *
- * Caller must free if the return value is not NULL.
+ * @return An allocated string with the realm or NULL if an error occured.
  *
+ * The caller must free the realm string with free() if not needed anymore.
  */
-
 char *smb_krb5_principal_get_realm(krb5_context context,
                                   krb5_const_principal principal)
 {