intruduce krb5_generate_random() that can fail and return an error, check for it at krb5_context creation time

This commit is contained in:
Love Hornquist Astrand
2013-10-21 08:22:02 -07:00
parent 1881980d44
commit 516c12c9a9
5 changed files with 89 additions and 13 deletions

View File

@@ -56,6 +56,11 @@ typedef ssize_t krb5_ssize_t;
#endif
#endif
#ifndef HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE
#if __has_extension(__warn_unused_result__) || KRB5TYPES_REQUIRE_GNUC(3,3,0)
#define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE __attribute__((__warn_unused_result__))
#endif
typedef int krb5_socket_t;
#endif /* __krb5_types_h__ */