summaryrefslogtreecommitdiff
path: root/ssl/statem/statem_dtls.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-06-03 22:45:47 -0400
committerRich Salz <rsalz@openssl.org>2016-06-04 07:08:29 -0400
commit255cf605d67e72b73e6130d4c7bbe68c0eb22d8e (patch)
tree4ff390fff9bd9a11f526ffd6537c51322daf9097 /ssl/statem/statem_dtls.c
parent843666ffdc0745e1aed5d665ec18d57263e32079 (diff)
downloadopenssl-new-255cf605d67e72b73e6130d4c7bbe68c0eb22d8e.tar.gz
RT3895: Remove fprintf's from SSL library.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/statem/statem_dtls.c')
-rw-r--r--ssl/statem/statem_dtls.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ssl/statem/statem_dtls.c b/ssl/statem/statem_dtls.c
index 2a693268cc..d75483af6d 100644
--- a/ssl/statem/statem_dtls.c
+++ b/ssl/statem/statem_dtls.c
@@ -918,7 +918,7 @@ WORK_STATE dtls_wait_for_dry(SSL *s)
int dtls1_read_failed(SSL *s, int code)
{
if (code > 0) {
- fprintf(stderr, "dtls1_read_failed(); invalid state reached\n");
+ SSLerr(SSL_F_DTLS1_READ_FAILED, ERR_R_INTERNAL_ERROR);
return 1;
}
@@ -975,10 +975,8 @@ int dtls1_retransmit_buffered_messages(SSL *s)
dtls1_get_queue_priority
(frag->msg_header.seq,
frag->msg_header.is_ccs),
- &found) <= 0 && found) {
- fprintf(stderr, "dtls1_retransmit_message() failed\n");
+ &found) <= 0)
return -1;
- }
}
return 1;
@@ -1070,7 +1068,7 @@ dtls1_retransmit_message(SSL *s, unsigned short seq, int *found)
item = pqueue_find(s->d1->sent_messages, seq64be);
if (item == NULL) {
- fprintf(stderr, "retransmit: message %d non-existant\n", seq);
+ SSLerr(SSL_F_DTLS1_RETRANSMIT_MESSAGE, ERR_R_INTERNAL_ERROR);
*found = 0;
return 0;
}