diff options
| author | tedu <> | 2014-05-17 16:00:53 +0000 |
|---|---|---|
| committer | tedu <> | 2014-05-17 16:00:53 +0000 |
| commit | 82e342ca65dd15740280186423566df4a8b7b0d7 (patch) | |
| tree | 1e6ea7cf38cbb39bc396304844560c8d99b68598 /src/lib/libssl/src | |
| parent | 5c6bc17edf18aba48194c47a0c10127830cf6cb9 (diff) | |
| download | openbsd-82e342ca65dd15740280186423566df4a8b7b0d7.tar.gz openbsd-82e342ca65dd15740280186423566df4a8b7b0d7.tar.bz2 openbsd-82e342ca65dd15740280186423566df4a8b7b0d7.zip | |
no no md2
Diffstat (limited to 'src/lib/libssl/src')
| -rw-r--r-- | src/lib/libssl/src/apps/progs.h | 4 | ||||
| -rw-r--r-- | src/lib/libssl/src/apps/speed.c | 29 | ||||
| -rw-r--r-- | src/lib/libssl/src/apps/version.c | 6 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/evp/evp.h | 3 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/pkcs7/sign.c | 3 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/pkcs7/verify.c | 3 |
6 files changed, 0 insertions, 48 deletions
diff --git a/src/lib/libssl/src/apps/progs.h b/src/lib/libssl/src/apps/progs.h index c6f66b585f..f3645c7131 100644 --- a/src/lib/libssl/src/apps/progs.h +++ b/src/lib/libssl/src/apps/progs.h | |||
| @@ -130,10 +130,6 @@ FUNCTION functions[] = { | |||
| 130 | #endif | 130 | #endif |
| 131 | 131 | ||
| 132 | /* Message Digests. */ | 132 | /* Message Digests. */ |
| 133 | #ifndef OPENSSL_NO_MD2 | ||
| 134 | { FUNC_TYPE_MD, "md2", dgst_main }, | ||
| 135 | { FUNC_TYPE_MD, "mdc2", dgst_main }, | ||
| 136 | #endif | ||
| 137 | #ifndef OPENSSL_NO_MD4 | 133 | #ifndef OPENSSL_NO_MD4 |
| 138 | { FUNC_TYPE_MD, "md4", dgst_main }, | 134 | { FUNC_TYPE_MD, "md4", dgst_main }, |
| 139 | #endif | 135 | #endif |
diff --git a/src/lib/libssl/src/apps/speed.c b/src/lib/libssl/src/apps/speed.c index c8ed39d1f6..76ab66c547 100644 --- a/src/lib/libssl/src/apps/speed.c +++ b/src/lib/libssl/src/apps/speed.c | |||
| @@ -128,9 +128,6 @@ | |||
| 128 | #ifndef OPENSSL_NO_IDEA | 128 | #ifndef OPENSSL_NO_IDEA |
| 129 | #include <openssl/idea.h> | 129 | #include <openssl/idea.h> |
| 130 | #endif | 130 | #endif |
| 131 | #ifndef OPENSSL_NO_MD2 | ||
| 132 | #include <openssl/md2.h> | ||
| 133 | #endif | ||
| 134 | #ifndef OPENSSL_NO_MDC2 | 131 | #ifndef OPENSSL_NO_MDC2 |
| 135 | #include <openssl/mdc2.h> | 132 | #include <openssl/mdc2.h> |
| 136 | #endif | 133 | #endif |
| @@ -270,9 +267,6 @@ speed_main(int argc, char **argv) | |||
| 270 | unsigned rsa_num; | 267 | unsigned rsa_num; |
| 271 | #endif | 268 | #endif |
| 272 | unsigned char md[EVP_MAX_MD_SIZE]; | 269 | unsigned char md[EVP_MAX_MD_SIZE]; |
| 273 | #ifndef OPENSSL_NO_MD2 | ||
| 274 | unsigned char md2[MD2_DIGEST_LENGTH]; | ||
| 275 | #endif | ||
| 276 | #ifndef OPENSSL_NO_MDC2 | 270 | #ifndef OPENSSL_NO_MDC2 |
| 277 | unsigned char mdc2[MDC2_DIGEST_LENGTH]; | 271 | unsigned char mdc2[MDC2_DIGEST_LENGTH]; |
| 278 | #endif | 272 | #endif |
| @@ -652,11 +646,6 @@ speed_main(int argc, char **argv) | |||
| 652 | j--; /* Otherwise, -mr gets confused with an | 646 | j--; /* Otherwise, -mr gets confused with an |
| 653 | * algorithm. */ | 647 | * algorithm. */ |
| 654 | } else | 648 | } else |
| 655 | #ifndef OPENSSL_NO_MD2 | ||
| 656 | if (strcmp(*argv, "md2") == 0) | ||
| 657 | doit[D_MD2] = 1; | ||
| 658 | else | ||
| 659 | #endif | ||
| 660 | #ifndef OPENSSL_NO_MDC2 | 649 | #ifndef OPENSSL_NO_MDC2 |
| 661 | if (strcmp(*argv, "mdc2") == 0) | 650 | if (strcmp(*argv, "mdc2") == 0) |
| 662 | doit[D_MDC2] = 1; | 651 | doit[D_MDC2] = 1; |
| @@ -931,9 +920,6 @@ speed_main(int argc, char **argv) | |||
| 931 | BIO_printf(bio_err, "Error: bad option or value\n"); | 920 | BIO_printf(bio_err, "Error: bad option or value\n"); |
| 932 | BIO_printf(bio_err, "\n"); | 921 | BIO_printf(bio_err, "\n"); |
| 933 | BIO_printf(bio_err, "Available values:\n"); | 922 | BIO_printf(bio_err, "Available values:\n"); |
| 934 | #ifndef OPENSSL_NO_MD2 | ||
| 935 | BIO_printf(bio_err, "md2 "); | ||
| 936 | #endif | ||
| 937 | #ifndef OPENSSL_NO_MDC2 | 923 | #ifndef OPENSSL_NO_MDC2 |
| 938 | BIO_printf(bio_err, "mdc2 "); | 924 | BIO_printf(bio_err, "mdc2 "); |
| 939 | #endif | 925 | #endif |
| @@ -1163,18 +1149,6 @@ speed_main(int argc, char **argv) | |||
| 1163 | #define COUNT(d) (count) | 1149 | #define COUNT(d) (count) |
| 1164 | signal(SIGALRM, sig_done); | 1150 | signal(SIGALRM, sig_done); |
| 1165 | 1151 | ||
| 1166 | #ifndef OPENSSL_NO_MD2 | ||
| 1167 | if (doit[D_MD2]) { | ||
| 1168 | for (j = 0; j < SIZE_NUM; j++) { | ||
| 1169 | print_message(names[D_MD2], c[D_MD2][j], lengths[j]); | ||
| 1170 | Time_F(START); | ||
| 1171 | for (count = 0, run = 1; COND(c[D_MD2][j]); count++) | ||
| 1172 | EVP_Digest(buf, (unsigned long) lengths[j], &(md2[0]), NULL, EVP_md2(), NULL); | ||
| 1173 | d = Time_F(STOP); | ||
| 1174 | print_result(D_MD2, j, count, d); | ||
| 1175 | } | ||
| 1176 | } | ||
| 1177 | #endif | ||
| 1178 | #ifndef OPENSSL_NO_MDC2 | 1152 | #ifndef OPENSSL_NO_MDC2 |
| 1179 | if (doit[D_MDC2]) { | 1153 | if (doit[D_MDC2]) { |
| 1180 | for (j = 0; j < SIZE_NUM; j++) { | 1154 | for (j = 0; j < SIZE_NUM; j++) { |
| @@ -1914,9 +1888,6 @@ show_res: | |||
| 1914 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); | 1888 | fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); |
| 1915 | printf("options:"); | 1889 | printf("options:"); |
| 1916 | printf("%s ", BN_options()); | 1890 | printf("%s ", BN_options()); |
| 1917 | #ifndef OPENSSL_NO_MD2 | ||
| 1918 | printf("%s ", MD2_options()); | ||
| 1919 | #endif | ||
| 1920 | #ifndef OPENSSL_NO_RC4 | 1891 | #ifndef OPENSSL_NO_RC4 |
| 1921 | printf("%s ", RC4_options()); | 1892 | printf("%s ", RC4_options()); |
| 1922 | #endif | 1893 | #endif |
diff --git a/src/lib/libssl/src/apps/version.c b/src/lib/libssl/src/apps/version.c index bd21f5d017..927704b65e 100644 --- a/src/lib/libssl/src/apps/version.c +++ b/src/lib/libssl/src/apps/version.c | |||
| @@ -116,9 +116,6 @@ | |||
| 116 | #include <openssl/evp.h> | 116 | #include <openssl/evp.h> |
| 117 | #include <openssl/crypto.h> | 117 | #include <openssl/crypto.h> |
| 118 | #include <openssl/bn.h> | 118 | #include <openssl/bn.h> |
| 119 | #ifndef OPENSSL_NO_MD2 | ||
| 120 | #include <openssl/md2.h> | ||
| 121 | #endif | ||
| 122 | #ifndef OPENSSL_NO_RC4 | 119 | #ifndef OPENSSL_NO_RC4 |
| 123 | #include <openssl/rc4.h> | 120 | #include <openssl/rc4.h> |
| 124 | #endif | 121 | #endif |
| @@ -188,9 +185,6 @@ version_main(int argc, char **argv) | |||
| 188 | if (options) { | 185 | if (options) { |
| 189 | printf("options: "); | 186 | printf("options: "); |
| 190 | printf("%s ", BN_options()); | 187 | printf("%s ", BN_options()); |
| 191 | #ifndef OPENSSL_NO_MD2 | ||
| 192 | printf("%s ", MD2_options()); | ||
| 193 | #endif | ||
| 194 | #ifndef OPENSSL_NO_RC4 | 188 | #ifndef OPENSSL_NO_RC4 |
| 195 | printf("%s ", RC4_options()); | 189 | printf("%s ", RC4_options()); |
| 196 | #endif | 190 | #endif |
diff --git a/src/lib/libssl/src/crypto/evp/evp.h b/src/lib/libssl/src/crypto/evp/evp.h index 25a495b32f..5cd125894f 100644 --- a/src/lib/libssl/src/crypto/evp/evp.h +++ b/src/lib/libssl/src/crypto/evp/evp.h | |||
| @@ -646,9 +646,6 @@ void BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k, | |||
| 646 | #endif | 646 | #endif |
| 647 | 647 | ||
| 648 | const EVP_MD *EVP_md_null(void); | 648 | const EVP_MD *EVP_md_null(void); |
| 649 | #ifndef OPENSSL_NO_MD2 | ||
| 650 | const EVP_MD *EVP_md2(void); | ||
| 651 | #endif | ||
| 652 | #ifndef OPENSSL_NO_MD4 | 649 | #ifndef OPENSSL_NO_MD4 |
| 653 | const EVP_MD *EVP_md4(void); | 650 | const EVP_MD *EVP_md4(void); |
| 654 | #endif | 651 | #endif |
diff --git a/src/lib/libssl/src/crypto/pkcs7/sign.c b/src/lib/libssl/src/crypto/pkcs7/sign.c index 8b59885f7e..43168514f9 100644 --- a/src/lib/libssl/src/crypto/pkcs7/sign.c +++ b/src/lib/libssl/src/crypto/pkcs7/sign.c | |||
| @@ -76,9 +76,6 @@ char *argv[]; | |||
| 76 | int i; | 76 | int i; |
| 77 | int nodetach=0; | 77 | int nodetach=0; |
| 78 | 78 | ||
| 79 | #ifndef OPENSSL_NO_MD2 | ||
| 80 | EVP_add_digest(EVP_md2()); | ||
| 81 | #endif | ||
| 82 | #ifndef OPENSSL_NO_MD5 | 79 | #ifndef OPENSSL_NO_MD5 |
| 83 | EVP_add_digest(EVP_md5()); | 80 | EVP_add_digest(EVP_md5()); |
| 84 | #endif | 81 | #endif |
diff --git a/src/lib/libssl/src/crypto/pkcs7/verify.c b/src/lib/libssl/src/crypto/pkcs7/verify.c index b40f26032e..414f985dc2 100644 --- a/src/lib/libssl/src/crypto/pkcs7/verify.c +++ b/src/lib/libssl/src/crypto/pkcs7/verify.c | |||
| @@ -85,9 +85,6 @@ char *argv[]; | |||
| 85 | 85 | ||
| 86 | bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); | 86 | bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); |
| 87 | bio_out=BIO_new_fp(stdout,BIO_NOCLOSE); | 87 | bio_out=BIO_new_fp(stdout,BIO_NOCLOSE); |
| 88 | #ifndef OPENSSL_NO_MD2 | ||
| 89 | EVP_add_digest(EVP_md2()); | ||
| 90 | #endif | ||
| 91 | #ifndef OPENSSL_NO_MD5 | 88 | #ifndef OPENSSL_NO_MD5 |
| 92 | EVP_add_digest(EVP_md5()); | 89 | EVP_add_digest(EVP_md5()); |
| 93 | #endif | 90 | #endif |
