summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md2/md2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/md2/md2.h')
-rw-r--r--src/lib/libcrypto/md2/md2.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libcrypto/md2/md2.h b/src/lib/libcrypto/md2/md2.h
index 0d3592506c..ad9241455c 100644
--- a/src/lib/libcrypto/md2/md2.h
+++ b/src/lib/libcrypto/md2/md2.h
@@ -59,11 +59,7 @@
59#ifndef HEADER_MD2_H 59#ifndef HEADER_MD2_H
60#define HEADER_MD2_H 60#define HEADER_MD2_H
61 61
62#ifdef __cplusplus 62#ifdef OPENSSL_NO_MD2
63extern "C" {
64#endif
65
66#ifdef NO_MD2
67#error MD2 is disabled. 63#error MD2 is disabled.
68#endif 64#endif
69 65
@@ -71,6 +67,10 @@ extern "C" {
71#define MD2_BLOCK 16 67#define MD2_BLOCK 16
72#include <openssl/opensslconf.h> /* MD2_INT */ 68#include <openssl/opensslconf.h> /* MD2_INT */
73 69
70#ifdef __cplusplus
71extern "C" {
72#endif
73
74typedef struct MD2state_st 74typedef struct MD2state_st
75 { 75 {
76 int num; 76 int num;
@@ -80,10 +80,10 @@ typedef struct MD2state_st
80 } MD2_CTX; 80 } MD2_CTX;
81 81
82const char *MD2_options(void); 82const char *MD2_options(void);
83void MD2_Init(MD2_CTX *c); 83int MD2_Init(MD2_CTX *c);
84void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len); 84int MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len);
85void MD2_Final(unsigned char *md, MD2_CTX *c); 85int MD2_Final(unsigned char *md, MD2_CTX *c);
86unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md); 86unsigned char *MD2(const unsigned char *d, unsigned long n,unsigned char *md);
87#ifdef __cplusplus 87#ifdef __cplusplus
88} 88}
89#endif 89#endif