Ensure function SHA1_TraceState is always defined, even when TRACING_SSL

is not defined.
This commit is contained in:
nelsonb%netscape.com 2000-12-27 02:41:59 +00:00
Родитель ca6ec16975
Коммит 29c09b0208
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -35,6 +35,7 @@
#include <memory.h>
#include "blapi.h"
#include "sha_fast.h"
#include "prerror.h"
#ifdef TRACING_SSL
#include "ssl.h"
@ -383,10 +384,10 @@ SHA1_Resurrect(unsigned char *space,void *arg)
return cx;
}
#ifdef TRACING_SSL
void
SHA1_TraceState(SHA1Context *ctx)
{
#ifdef TRACING_SSL
uint32 W;
int i;
int len;
@ -414,5 +415,7 @@ SHA1_TraceState(SHA1Context *ctx)
PRINT_BUF(99, (0, "SHA1_TraceState: buffered input", buf, len));
}
#else
PORT_SetError(PR_NOT_IMPLEMENTED_ERROR);
#endif
}