aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg-error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpg-error.h')
-rw-r--r--src/gpg-error.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gpg-error.h b/src/gpg-error.h
index 96eaf9a..08e20f6 100644
--- a/src/gpg-error.h
+++ b/src/gpg-error.h
@@ -492,10 +492,16 @@ gpg_err_source (gpg_error_t err)
/* String functions. */
/* Return a pointer to a string containing a description of the error
- code in the error value ERR. */
+ code in the error value ERR. This function is not thread-safe. */
const char *gpg_strerror (gpg_error_t err);
/* Return a pointer to a string containing a description of the error
+ code in the error value ERR. The buffer for the string is
+ allocated with malloc(), and has to be released by the user. On
+ error, NULL is returned. */
+char *gpg_strerror_r (gpg_error_t err);
+
+/* Return a pointer to a string containing a description of the error
source in the error value ERR. */
const char *gpg_strsource (gpg_error_t err);