snprintf: move contributed ssl patch to lws_snprintf
This commit is contained in:
parent
d1aa92011b
commit
f13db3e722
1 changed files with 3 additions and 3 deletions
|
@ -122,13 +122,13 @@ char* lws_ssl_get_error_string(int status, int ret, char *buf, size_t len) {
|
||||||
case SSL_ERROR_SYSCALL:
|
case SSL_ERROR_SYSCALL:
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case 0:
|
case 0:
|
||||||
snprintf(buf, len, "SSL_ERROR_SYSCALL: EOF");
|
lws_snprintf(buf, len, "SSL_ERROR_SYSCALL: EOF");
|
||||||
return buf;
|
return buf;
|
||||||
case -1:
|
case -1:
|
||||||
#ifndef LWS_PLAT_OPTEE
|
#ifndef LWS_PLAT_OPTEE
|
||||||
snprintf(buf, len, "SSL_ERROR_SYSCALL: %s", strerror(errno));
|
lws_snprintf(buf, len, "SSL_ERROR_SYSCALL: %s", strerror(errno));
|
||||||
#else
|
#else
|
||||||
snprintf(buf, len, "SSL_ERROR_SYSCALL: %d", errno);
|
lws_snprintf(buf, len, "SSL_ERROR_SYSCALL: %d", errno);
|
||||||
#endif
|
#endif
|
||||||
return buf;
|
return buf;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue