summaryrefslogtreecommitdiff
path: root/include/crypt.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-05 13:46:47 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-05 13:46:47 +0000
commit07beb34d51523f7f30e354ef08a802ed79cf09da (patch)
tree544c7c04669d4793e5e228aaa29123f4c9922521 /include/crypt.h
parent64ba3e5e0836bde4e85d6d2fdd133e2d37211e86 (diff)
- make libcrypt optional. Untested.
Diffstat (limited to 'include/crypt.h')
-rw-r--r--include/crypt.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/crypt.h b/include/crypt.h
index f3fed7ca7..f62a03056 100644
--- a/include/crypt.h
+++ b/include/crypt.h
@@ -27,14 +27,15 @@ __BEGIN_DECLS
/* Encrypt characters from KEY using salt to perturb the encryption method.
* If salt begins with "$1$", MD5 hashing is used instead of DES. */
-extern char *crypt (const char *__key, const char *__salt);
+extern char *crypt (const char *__key, const char *__salt)
+ __THROW __nonnull ((1, 2));
/* Setup DES tables according KEY. */
-extern void setkey (const char *__key);
+extern void setkey (const char *__key) __THROW __nonnull ((1));
/* Encrypt data in BLOCK in place if EDFLAG is zero; otherwise decrypt
block in place. */
-extern void encrypt (char *__block, int __edflag);
+extern void encrypt (char *__block, int __edflag) __THROW __nonnull ((1));
__END_DECLS