From: Ben Laurie Date: Tue, 30 Sep 2003 16:15:49 +0000 (+0000) Subject: setkey is already defined on HP/UX. X-Git-Tag: BEN_FIPS_TEST_1~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=80be2f484f40c400df739fc8bd804247a2253ddf;p=oweals%2Fopenssl.git setkey is already defined on HP/UX. --- diff --git a/fips/rsa/fingerprint.sha1 b/fips/rsa/fingerprint.sha1 index 0e6dc8462a..1ee4addb3d 100644 --- a/fips/rsa/fingerprint.sha1 +++ b/fips/rsa/fingerprint.sha1 @@ -1,3 +1,3 @@ SHA1(fips_rsa_eay.c)= 945cac757aecfad5a3c6bfcd4db7c384e51342f5 SHA1(fips_rsa_gen.c)= 4367cb3840db0df5b50846a198c33911c28ab2f4 -SHA1(fips_rsa_selftest.c)= b77290943c00293b1671d098a219763dcfa7f6d8 +SHA1(fips_rsa_selftest.c)= f0a9683b29b3e231067f840424727413e811cbfc diff --git a/fips/rsa/fips_rsa_selftest.c b/fips/rsa/fips_rsa_selftest.c index 2af2a7999c..12e71b4972 100644 --- a/fips/rsa/fips_rsa_selftest.c +++ b/fips/rsa/fips_rsa_selftest.c @@ -66,7 +66,7 @@ memcpy(c, ctext_ex, sizeof(ctext_ex) - 1); \ return (sizeof(ctext_ex) - 1); -static int setkey(RSA *key, unsigned char *c) +static int setrsakey(RSA *key, unsigned char *c) { static unsigned char n[] = "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71" @@ -157,7 +157,7 @@ int FIPS_selftest_rsa() int n; key=RSA_new(); - clen=setkey(key,expected_ctext); + clen=setrsakey(key,expected_ctext); n=RSA_public_encrypt(sizeof(original_ptext)-1,original_ptext,ctext,key, RSA_NO_PADDING); if(n < 0)