Skip to content

Commit 9e813d5

Browse files
committed
Remove dead code
1 parent 3bbd999 commit 9e813d5

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

tests/evp-sign.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,6 @@ int main(int argc, char **argv)
287287

288288
printf("Signature created\n");
289289

290-
#if OPENSSL_VERSION_NUMBER >= 0x1000000fL
291-
292290
ctx = EVP_MD_CTX_create();
293291
if (EVP_DigestInit(ctx, digest_algo) <= 0) {
294292
display_openssl_errors(__LINE__);
@@ -314,12 +312,6 @@ int main(int argc, char **argv)
314312

315313
printf("Signature verified\n");
316314

317-
#else /* OPENSSL_VERSION_NUMBER >= 0x1000000fL */
318-
319-
printf("Unable to verify signature with %s\n", OPENSSL_VERSION_TEXT);
320-
321-
#endif /* OPENSSL_VERSION_NUMBER >= 0x1000000fL */
322-
323315
CONF_modules_unload(1);
324316
UI_destroy_method(ui_detect_failed_ctrl);
325317
UI_destroy_method(ui_console_with_default);

tests/rsa-pss-sign.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ int main(int argc, char **argv)
220220

221221
printf("Signature created\n");
222222

223-
#if OPENSSL_VERSION_NUMBER >= 0x1000000fL
224-
225223
pkey_ctx = EVP_PKEY_CTX_new(public_key, e);
226224

227225
if (pkey_ctx == NULL) {
@@ -266,12 +264,6 @@ int main(int argc, char **argv)
266264
exit(1);
267265
}
268266

269-
#else /* OPENSSL_VERSION_NUMBER >= 0x1000000fL */
270-
271-
printf("Unable to verify signature with %s\n", OPENSSL_VERSION_TEXT);
272-
273-
#endif /* OPENSSL_VERSION_NUMBER >= 0x1000000fL */
274-
275267
/* Free the functional reference from ENGINE_init */
276268
ENGINE_finish(e);
277269
CONF_modules_unload(1);

0 commit comments

Comments
 (0)