X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Frsa_test.c;h=67f29808810a8a55877cdaabedd79b8362a8f9d8;hp=b351cebaae34de5156979841db2b45d40d508173;hb=023b188ca553aa4318d8e7021e3abbbb98833410;hpb=ac6fff700a9799c25902165e2594fd46826f3ee3 diff --git a/test/rsa_test.c b/test/rsa_test.c index b351cebaae..67f2980881 100644 --- a/test/rsa_test.c +++ b/test/rsa_test.c @@ -1,5 +1,5 @@ /* - * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1999-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -9,6 +9,12 @@ /* test vectors from p1ovect1.txt */ +/* + * RSA low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include #include @@ -42,6 +48,8 @@ int setup_tests(void) BN_bin2bn(dmp1, sizeof(dmp1)-1, NULL), \ BN_bin2bn(dmq1, sizeof(dmq1)-1, NULL), \ BN_bin2bn(iqmp, sizeof(iqmp)-1, NULL)); \ + if (c == NULL) \ + return 0; \ memcpy(c, ctext_ex, sizeof(ctext_ex) - 1); \ return sizeof(ctext_ex) - 1;