Commit 80be2f48 authored by Ben Laurie's avatar Ben Laurie
Browse files

setkey is already defined on HP/UX.

parent cf54f06d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
SHA1(fips_rsa_eay.c)= 945cac757aecfad5a3c6bfcd4db7c384e51342f5
SHA1(fips_rsa_gen.c)= 4367cb3840db0df5b50846a198c33911c28ab2f4
SHA1(fips_rsa_selftest.c)= b77290943c00293b1671d098a219763dcfa7f6d8
SHA1(fips_rsa_selftest.c)= f0a9683b29b3e231067f840424727413e811cbfc
+2 −2
Original line number Diff line number Diff line
@@ -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)