Fill in missing information about the string returned from
[openssl.git] / ssl / ssl2.h
index 95e8231dfcbfc3388d2f899fbee9906fb98b7381..df7d03c18f70d02dbd425ea4e292acd34af0e0bf 100644 (file)
@@ -133,7 +133,11 @@ extern "C" {
 
 /* Upper/Lower Bounds */
 #define SSL2_MAX_MASTER_KEY_LENGTH_IN_BITS     256
+#ifdef MPE
+#define SSL2_MAX_RECORD_LENGTH_2_BYTE_HEADER   (unsigned int)29998
+#else
 #define SSL2_MAX_RECORD_LENGTH_2_BYTE_HEADER   (unsigned int)32767 
+#endif
 #define SSL2_MAX_RECORD_LENGTH_3_BYTE_HEADER   16383 /**/
 
 #define SSL2_CHALLENGE_LENGTH  16
@@ -151,7 +155,7 @@ extern "C" {
 #define  CERT          char
 #endif
 
-typedef struct ssl2_ctx_st
+typedef struct ssl2_state_st
        {
        int three_byte_header;
        int clear_text;         /* clear text */
@@ -162,7 +166,7 @@ typedef struct ssl2_ctx_st
         * args were passwd */
        unsigned int wnum;      /* number of bytes sent so far */
        int wpend_tot;
-       char *wpend_buf;
+       const unsigned char *wpend_buf;
 
        int wpend_off;  /* offset to data to write */
        int wpend_len;  /* number of bytes passwd to write */
@@ -214,7 +218,7 @@ typedef struct ssl2_ctx_st
                unsigned int clen;
                unsigned int rlen;
                } tmp;
-       } SSL2_CTX;
+       } SSL2_STATE;
 
 /* SSLv2 */
 /* client */