| OLD | NEW |
| 1 /* crypto/evp/m_md2.c */ | 1 /* crypto/evp/m_md2.c */ |
| 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
| 6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
| 7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
| 8 * | 8 * |
| 9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
| 10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 * SUCH DAMAGE. | 51 * SUCH DAMAGE. |
| 52 * | 52 * |
| 53 * The licence and distribution terms for any publically available version or | 53 * The licence and distribution terms for any publically available version or |
| 54 * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 * copied and put under another distribution licence | 55 * copied and put under another distribution licence |
| 56 * [including the GNU Public Licence.] | 56 * [including the GNU Public Licence.] |
| 57 */ | 57 */ |
| 58 | 58 |
| 59 #include <stdio.h> | 59 #include <stdio.h> |
| 60 #include "cryptlib.h" | 60 #include "cryptlib.h" |
| 61 #include "evp_locl.h" | |
| 62 | 61 |
| 63 #ifndef OPENSSL_NO_MD2 | 62 #ifndef OPENSSL_NO_MD2 |
| 64 | 63 |
| 65 #include <openssl/evp.h> | 64 #include <openssl/evp.h> |
| 66 #include <openssl/objects.h> | 65 #include <openssl/objects.h> |
| 67 #include <openssl/x509.h> | 66 #include <openssl/x509.h> |
| 68 #include <openssl/md2.h> | 67 #include <openssl/md2.h> |
| 69 #ifndef OPENSSL_NO_RSA | 68 #ifndef OPENSSL_NO_RSA |
| 70 #include <openssl/rsa.h> | 69 #include <openssl/rsa.h> |
| 71 #endif | 70 #endif |
| (...skipping 21 matching lines...) Expand all Loading... |
| 93 EVP_PKEY_RSA_method, | 92 EVP_PKEY_RSA_method, |
| 94 MD2_BLOCK, | 93 MD2_BLOCK, |
| 95 sizeof(EVP_MD *)+sizeof(MD2_CTX), | 94 sizeof(EVP_MD *)+sizeof(MD2_CTX), |
| 96 }; | 95 }; |
| 97 | 96 |
| 98 const EVP_MD *EVP_md2(void) | 97 const EVP_MD *EVP_md2(void) |
| 99 { | 98 { |
| 100 return(&md2_md); | 99 return(&md2_md); |
| 101 } | 100 } |
| 102 #endif | 101 #endif |
| OLD | NEW |