| ... | @@ -70,14 +70,8 @@ | ... | @@ -70,14 +70,8 @@ |
| 70 | #include <semaphore.h> | 70 | #include <semaphore.h> |
| 71 | #include <signal.h> | 71 | #include <signal.h> |
| 72 | #include <stddef.h> | 72 | #include <stddef.h> |
| 73 | #include <md5.h> | | |
| 74 | #include <sha224.h> | | |
| 75 | #include <sha256.h> | | |
| 76 | #include <sha384.h> | | |
| 77 | #include <sha512.h> | | |
| 78 | #include <stdio.h> | 73 | #include <stdio.h> |
| 79 | #include <stringlist.h> | 74 | #include <stringlist.h> |
| 80 | #include <term.h> | | |
| 81 | #include <termios.h> | 75 | #include <termios.h> |
| 82 | #include <time.h> | 76 | #include <time.h> |
| 83 | #include <ttyent.h> | 77 | #include <ttyent.h> |
| ... | @@ -378,22 +372,6 @@ const int si_SEGV_MAPERR = SEGV_MAPERR; | ... | @@ -378,22 +372,6 @@ const int si_SEGV_MAPERR = SEGV_MAPERR; |
| 378 | const int si_SEGV_ACCERR = SEGV_ACCERR; | 372 | const int si_SEGV_ACCERR = SEGV_ACCERR; |
| 379 | const int unvis_valid = UNVIS_VALID; | 373 | const int unvis_valid = UNVIS_VALID; |
| 380 | const int unvis_validpush = UNVIS_VALIDPUSH; | 374 | const int unvis_validpush = UNVIS_VALIDPUSH; |
| 381 | | | |
| 382 | const unsigned MD5_CTX_sz = sizeof(MD5_CTX); | | |
| 383 | const unsigned MD5_return_length = MD5_DIGEST_STRING_LENGTH; | | |
| 384 | | | |
| 385 | #define SHA2_CONST(LEN) \ | | |
| 386 | const unsigned SHA##LEN##_CTX_sz = sizeof(SHA##LEN##_CTX); \ | | |
| 387 | const unsigned SHA##LEN##_return_length = SHA##LEN##_DIGEST_STRING_LENGTH; \ | | |
| 388 | const unsigned SHA##LEN##_block_length = SHA##LEN##_BLOCK_LENGTH; \ | | |
| 389 | const unsigned SHA##LEN##_digest_length = SHA##LEN##_DIGEST_LENGTH | | |
| 390 | | | |
| 391 | SHA2_CONST(224); | | |
| 392 | SHA2_CONST(256); | | |
| 393 | SHA2_CONST(384); | | |
| 394 | SHA2_CONST(512); | | |
| 395 | | | |
| 396 | #undef SHA2_CONST | | |
| 397 | } // namespace __sanitizer | 375 | } // namespace __sanitizer |
| 398 | | 376 | |
| 399 | using namespace __sanitizer; | 377 | using namespace __sanitizer; |