openssl: use snprintf(3) instead of rb_snprintf()
This commit is contained in:
parent
5325f9d2d2
commit
1a938496eb
1 changed files with 7 additions and 7 deletions
|
@ -842,14 +842,14 @@ rb_get_ssl_info(char *buf, size_t len)
|
||||||
{
|
{
|
||||||
#ifdef LRB_SSL_FULL_VERSION_INFO
|
#ifdef LRB_SSL_FULL_VERSION_INFO
|
||||||
if (LRB_SSL_VNUM_RUNTIME == LRB_SSL_VNUM_COMPILETIME)
|
if (LRB_SSL_VNUM_RUNTIME == LRB_SSL_VNUM_COMPILETIME)
|
||||||
rb_snprintf(buf, len, "OpenSSL: compiled 0x%lx, library %s",
|
snprintf(buf, len, "OpenSSL: compiled 0x%lx, library %s",
|
||||||
LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_COMPILETIME);
|
LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_COMPILETIME);
|
||||||
else
|
else
|
||||||
rb_snprintf(buf, len, "OpenSSL: compiled (0x%lx, %s), library (0x%lx, %s)",
|
snprintf(buf, len, "OpenSSL: compiled (0x%lx, %s), library (0x%lx, %s)",
|
||||||
LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_COMPILETIME,
|
LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_COMPILETIME,
|
||||||
LRB_SSL_VNUM_RUNTIME, LRB_SSL_VTEXT_RUNTIME);
|
LRB_SSL_VNUM_RUNTIME, LRB_SSL_VTEXT_RUNTIME);
|
||||||
#else
|
#else
|
||||||
rb_snprintf(buf, len, "OpenSSL: compiled 0x%lx, library %s",
|
snprintf(buf, len, "OpenSSL: compiled 0x%lx, library %s",
|
||||||
LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_RUNTIME);
|
LRB_SSL_VNUM_COMPILETIME, LRB_SSL_VTEXT_RUNTIME);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue