diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/cipher.h | 2 | ||||
-rw-r--r-- | include/errors.h | 1 | ||||
-rw-r--r-- | include/util.h | 9 |
4 files changed, 16 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index b59c6393c..627449c34 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 14 09:17:22 1998 Werner Koch (wk@(none)) + + * util.h (HAVE_ATEXIT): New. + (HAVE_RAISE): New. + Mon Jul 6 10:41:55 1998 Werner Koch ([email protected]) * cipher.h (PUBKEY_USAGE_): New. diff --git a/include/cipher.h b/include/cipher.h index 8ddd3655a..d26812647 100644 --- a/include/cipher.h +++ b/include/cipher.h @@ -134,7 +134,7 @@ unsigned cipher_get_keylen( int algo ); unsigned cipher_get_blocksize( int algo ); CIPHER_HANDLE cipher_open( int algo, int mode, int secure ); void cipher_close( CIPHER_HANDLE c ); -void cipher_setkey( CIPHER_HANDLE c, byte *key, unsigned keylen ); +int cipher_setkey( CIPHER_HANDLE c, byte *key, unsigned keylen ); void cipher_setiv( CIPHER_HANDLE c, const byte *iv ); void cipher_encrypt( CIPHER_HANDLE c, byte *out, byte *in, unsigned nbytes ); void cipher_decrypt( CIPHER_HANDLE c, byte *out, byte *in, unsigned nbytes ); diff --git a/include/errors.h b/include/errors.h index b1182ba1f..40fffcb50 100644 --- a/include/errors.h +++ b/include/errors.h @@ -62,6 +62,7 @@ #define G10ERR_TIME_CONFLICT 40 #define G10ERR_WR_PUBKEY_ALGO 41 /* unusabe pubkey algo */ #define G10ERR_FILE_EXISTS 42 +#define G10ERR_WEAK_KEY 43 #ifndef HAVE_STRERROR diff --git a/include/util.h b/include/util.h index f480f48f3..cd4d488ca 100644 --- a/include/util.h +++ b/include/util.h @@ -166,6 +166,15 @@ char *strlwr(char *a); #endif +/**** other missing stuff ****/ +#ifndef HAVE_ATEXIT /* For SunOS */ + #define atexit(a) (on_exit((a),0)) +#endif + +#ifndef HAVE_RAISE + #define raise(a) kill(getpid(), (a)) +#endif + /******** some macros ************/ #ifndef STR #define STR(v) #v |