Make a note of the new engine.
[oweals/openssl.git] / ssl / s3_pkt.c
index 14140798539dfdea43b19bd1251e35bf0c5733e8..92d9a4ab1b4c166889bae564559e1ef94e3f5fc3 100644 (file)
@@ -704,13 +704,19 @@ static int ssl3_write_pending(SSL *s, int type, const unsigned char *buf,
  *     Application data protocol
  *             none of our business
  */
-int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len)
+int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek)
        {
        int al,i,j,ret;
        unsigned int n;
        SSL3_RECORD *rr;
        void (*cb)()=NULL;
 
+       if (peek)
+               {
+               SSLerr(SSL_F_SSL3_READ_BYTES, SSL_R_FIXME); /* proper implementation not yet completed */
+               return -1;
+               }
+
        if (s->s3->rbuf.buf == NULL) /* Not initialized yet */
                if (!ssl3_setup_buffers(s))
                        return(-1);