Lines Matching refs:buflen
896 void mbedtls_strerror( int ret, char *buf, size_t buflen ) in mbedtls_strerror() argument
903 if( buflen == 0 ) in mbedtls_strerror()
906 memset( buf, 0x00, buflen ); in mbedtls_strerror()
919 mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret ); in mbedtls_strerror()
921 mbedtls_snprintf( buf, buflen, "%s", high_level_error_description ); in mbedtls_strerror()
943 if( buflen - len < 5 ) in mbedtls_strerror()
946 mbedtls_snprintf( buf + len, buflen - len, " : " ); in mbedtls_strerror()
949 buflen -= len + 3; in mbedtls_strerror()
956 mbedtls_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", (unsigned int) use_ret ); in mbedtls_strerror()
958 mbedtls_snprintf( buf, buflen, "%s", low_level_error_description ); in mbedtls_strerror()
966 void mbedtls_strerror( int ret, char *buf, size_t buflen ) in mbedtls_strerror() argument
970 if( buflen > 0 ) in mbedtls_strerror()