Use bio_err not stderr in apps.
[openssl.git] / apps / s_cb.c
index 35366c567569b9463bbb5ab8182d5a24005feec0..44e70f2179697fa89c841f0981ddeffef7c3f93d 100644 (file)
@@ -931,8 +931,9 @@ static int set_cert_cb(SSL *ssl, void *arg)
     static int retry_cnt;
     if (retry_cnt < 5) {
         retry_cnt++;
-        fprintf(stderr, "Certificate callback retry test: count %d\n",
-                retry_cnt);
+        BIO_printf(bio_err,
+                   "Certificate callback retry test: count %d\n",
+                   retry_cnt);
         return -1;
     }
 #endif