diff options
author | Ralf S. Engelschall <rse@openssl.org> | 1999-05-10 08:33:56 +0000 |
---|---|---|
committer | Ralf S. Engelschall <rse@openssl.org> | 1999-05-10 08:33:56 +0000 |
commit | 397f703892d66df668d2a7192d89227dcd0ffad4 (patch) | |
tree | 2e4e9a6d3f3dfe72ec82dc622b1bba343da92df4 /crypto | |
parent | 884e8ec61533ee6361d72151066a808a0cfcd6d3 (diff) | |
download | openssl-397f703892d66df668d2a7192d89227dcd0ffad4.zip openssl-397f703892d66df668d2a7192d89227dcd0ffad4.tar.gz openssl-397f703892d66df668d2a7192d89227dcd0ffad4.tar.bz2 |
Fix various things to let OpenSSL even pass ``egcc -pipe -O2 -Wall -Wshadow
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -Winline'' with EGCS 1.1.2+
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rsa/rsa_oaep_test.c | 8 | ||||
-rw-r--r-- | crypto/sha/sha_locl.h | 6 | ||||
-rw-r--r-- | crypto/x509/x509.h | 3 | ||||
-rw-r--r-- | crypto/x509v3/v3_enum.c | 2 | ||||
-rw-r--r-- | crypto/x509v3/v3_int.c | 2 | ||||
-rw-r--r-- | crypto/x509v3/x509v3.h | 3 |
6 files changed, 15 insertions, 9 deletions
diff --git a/crypto/rsa/rsa_oaep_test.c b/crypto/rsa/rsa_oaep_test.c index 998116a..067f726 100644 --- a/crypto/rsa/rsa_oaep_test.c +++ b/crypto/rsa/rsa_oaep_test.c @@ -25,7 +25,7 @@ int main(int argc, char *argv[]) memcpy(c, ctext_ex, sizeof(ctext_ex) - 1); \ return (sizeof(ctext_ex) - 1); -int key1(RSA *key, unsigned char *c) +static int key1(RSA *key, unsigned char *c) { unsigned char n[] = "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F" @@ -74,7 +74,7 @@ int key1(RSA *key, unsigned char *c) SetKey; } -int key2(RSA *key, unsigned char *c) +static int key2(RSA *key, unsigned char *c) { unsigned char n[] = "\x00\xA3\x07\x9A\x90\xDF\x0D\xFD\x72\xAC\x09\x0C\xCC\x2A\x78\xB8" @@ -119,7 +119,7 @@ int key2(RSA *key, unsigned char *c) SetKey; } -int key3(RSA *key, unsigned char *c) +static int key3(RSA *key, unsigned char *c) { unsigned char n[] = "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71" @@ -191,7 +191,7 @@ int key3(RSA *key, unsigned char *c) SetKey; } -int pad_unknown(void) +static int pad_unknown(void) { unsigned long l; while ((l = ERR_get_error()) != 0) diff --git a/crypto/sha/sha_locl.h b/crypto/sha/sha_locl.h index 03215c2..a88a019 100644 --- a/crypto/sha/sha_locl.h +++ b/crypto/sha/sha_locl.h @@ -178,10 +178,10 @@ }) #ifndef I386_ONLY #define Endian_Reverse32(a) \ - { register unsigned int l=(a); \ + { register unsigned int ltmp=(a); \ asm ("bswapl %0" \ - : "=r"(l) : "0"(l)); \ - (a)=l; \ + : "=r"(ltmp) : "0"(ltmp)); \ + (a)=ltmp; \ } #endif #elif defined(__powerpc) diff --git a/crypto/x509/x509.h b/crypto/x509/x509.h index ac95f8a..0402ae7 100644 --- a/crypto/x509/x509.h +++ b/crypto/x509/x509.h @@ -900,6 +900,9 @@ PKCS8_PRIV_KEY_INFO *PKCS8_set_broken(PKCS8_PRIV_KEY_INFO *p8, int broken); /* Password based encryption routines */ +int EVP_PBE_CipherInit (ASN1_OBJECT *pbe_obj, const char *pass, int passlen, + unsigned char *salt, int saltlen, int iter, EVP_CIPHER_CTX *ctx, + int en_de); int EVP_PBE_ALGOR_CipherInit(X509_ALGOR *algor, const char *pass, int passlen, EVP_CIPHER_CTX *ctx, int en_de); int EVP_PBE_alg_add(int nid, EVP_CIPHER *cipher, EVP_MD *md, diff --git a/crypto/x509v3/v3_enum.c b/crypto/x509v3/v3_enum.c index e76229d..05af992 100644 --- a/crypto/x509v3/v3_enum.c +++ b/crypto/x509v3/v3_enum.c @@ -60,7 +60,7 @@ #include "cryptlib.h" #include <openssl/x509v3.h> -static ASN1_ENUMERATED *asn1_enumerated_new(); +static ASN1_ENUMERATED *asn1_enumerated_new(void); static ENUMERATED_NAMES crl_reasons[] = { {0, "Unspecified", "unspecified"}, diff --git a/crypto/x509v3/v3_int.c b/crypto/x509v3/v3_int.c index 33239dd..b27c0f4 100644 --- a/crypto/x509v3/v3_int.c +++ b/crypto/x509v3/v3_int.c @@ -60,7 +60,7 @@ #include "cryptlib.h" #include <openssl/x509v3.h> -static ASN1_INTEGER *asn1_integer_new(); +static ASN1_INTEGER *asn1_integer_new(void); X509V3_EXT_METHOD v3_crl_num = { NID_crl_number, 0, diff --git a/crypto/x509v3/x509v3.h b/crypto/x509v3/x509v3.h index d294a3c..f80dc74 100644 --- a/crypto/x509v3/x509v3.h +++ b/crypto/x509v3/x509v3.h @@ -381,6 +381,7 @@ X509_EXTENSION *X509V3_EXT_conf_nid(LHASH *conf, X509V3_CTX *ctx, int ext_nid, c X509_EXTENSION *X509V3_EXT_conf(LHASH *conf, X509V3_CTX *ctx, char *name, char *value); int X509V3_EXT_add_conf(LHASH *conf, X509V3_CTX *ctx, char *section, X509 *cert); int X509V3_EXT_CRL_add_conf(LHASH *conf, X509V3_CTX *ctx, char *section, X509_CRL *crl); +int X509V3_add_value_bool_nf(char *name, int asn1_bool, STACK **extlist); int X509V3_get_value_bool(CONF_VALUE *value, int *asn1_bool); int X509V3_get_value_int(CONF_VALUE *value, ASN1_INTEGER **aint); void X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH *lhash); @@ -403,6 +404,7 @@ ASN1_INTEGER * s2i_ASN1_INTEGER(X509V3_EXT_METHOD *meth, char *value); char * i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *meth, ASN1_ENUMERATED *aint); char * i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *meth, ASN1_ENUMERATED *aint); int X509V3_EXT_add(X509V3_EXT_METHOD *ext); +int X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist); int X509V3_EXT_add_alias(int nid_to, int nid_from); void X509V3_EXT_cleanup(void); @@ -417,6 +419,7 @@ char *hex_to_string(unsigned char *buffer, long len); unsigned char *string_to_hex(char *str, long *len); int name_cmp(const char *name, const char *cmp); +void X509V3_EXT_val_prn(BIO *out, STACK *val, int indent, int ml); int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, int flag, int indent); int X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent); |