提交 affadbef 编写于 作者: B Bodo Möller

Consistency

上级 397bd093
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
Changes between 0.9.5a and 0.9.6 [xx XXX 2000] Changes between 0.9.5a and 0.9.6 [xx XXX 2000]
*) For consistency with other BIO_puts implementations, call
buffer_write(b, ...) directly in buffer_puts instead of calling
BIO_write(b, ...).
[Peter.Sylvester@EdelWeb.fr]
*) Fix BN_mul_word for the case where the word is 0. (We have to use *) Fix BN_mul_word for the case where the word is 0. (We have to use
BN_zero, we may not return a BIGNUM with an array consisting of BN_zero, we may not return a BIGNUM with an array consisting of
words set to zero.) words set to zero.)
......
...@@ -827,7 +827,7 @@ int BIO_vprintf (BIO *bio, const char *format, va_list args) ...@@ -827,7 +827,7 @@ int BIO_vprintf (BIO *bio, const char *format, va_list args)
#ifdef USE_ALLOCATING_PRINT #ifdef USE_ALLOCATING_PRINT
char *hugebuf; char *hugebuf;
#else #else
MS_STATIC char hugebuf[1024*2]; /* 10k in one chunk is the limit */ MS_STATIC char hugebuf[1024*2];
#endif #endif
#ifndef USE_ALLOCATING_PRINT #ifndef USE_ALLOCATING_PRINT
......
...@@ -506,6 +506,6 @@ static int buffer_gets(BIO *b, char *buf, int size) ...@@ -506,6 +506,6 @@ static int buffer_gets(BIO *b, char *buf, int size)
static int buffer_puts(BIO *b, const char *str) static int buffer_puts(BIO *b, const char *str)
{ {
return(BIO_write(b,str,strlen(str))); return(buffer_write(b,str,strlen(str)));
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册