summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md2/md2.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/md2/md2.h (renamed from src/lib/libssl/src/crypto/md2/md2.org)29
1 files changed, 7 insertions, 22 deletions
diff --git a/src/lib/libssl/src/crypto/md2/md2.org b/src/lib/libcrypto/md2/md2.h
index 9f39933790..0d3592506c 100644
--- a/src/lib/libssl/src/crypto/md2/md2.org
+++ b/src/lib/libcrypto/md2/md2.h
@@ -1,4 +1,4 @@
1/* crypto/md/md2.org */ 1/* crypto/md/md2.h */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -56,15 +56,6 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59/* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
60 *
61 * Always modify md2.org since md2.h is automatically generated from
62 * it during SSLeay configuration.
63 *
64 * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
65 */
66
67
68#ifndef HEADER_MD2_H 59#ifndef HEADER_MD2_H
69#define HEADER_MD2_H 60#define HEADER_MD2_H
70 61
@@ -72,10 +63,13 @@
72extern "C" { 63extern "C" {
73#endif 64#endif
74 65
66#ifdef NO_MD2
67#error MD2 is disabled.
68#endif
69
75#define MD2_DIGEST_LENGTH 16 70#define MD2_DIGEST_LENGTH 16
76#define MD2_BLOCK 16 71#define MD2_BLOCK 16
77 72#include <openssl/opensslconf.h> /* MD2_INT */
78#define MD2_INT unsigned int
79 73
80typedef struct MD2state_st 74typedef struct MD2state_st
81 { 75 {
@@ -85,20 +79,11 @@ typedef struct MD2state_st
85 MD2_INT state[MD2_BLOCK]; 79 MD2_INT state[MD2_BLOCK];
86 } MD2_CTX; 80 } MD2_CTX;
87 81
88#ifndef NOPROTO 82const char *MD2_options(void);
89char *MD2_options(void);
90void MD2_Init(MD2_CTX *c); 83void MD2_Init(MD2_CTX *c);
91void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len); 84void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len);
92void MD2_Final(unsigned char *md, MD2_CTX *c); 85void MD2_Final(unsigned char *md, MD2_CTX *c);
93unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md); 86unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md);
94#else
95char *MD2_options();
96void MD2_Init();
97void MD2_Update();
98void MD2_Final();
99unsigned char *MD2();
100#endif
101
102#ifdef __cplusplus 87#ifdef __cplusplus
103} 88}
104#endif 89#endif