diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2018-08-08 18:34:47 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2018-08-08 18:42:48 +0900 |
commit | 7b2fdb8d136c580a7d1849a888516b698a979931 (patch) | |
tree | 2f80810f401f5c09fe3f72bae355ca4fa9873b32 /tool | |
parent | 49c9d3f473d9b12583e67971a20639170c0db95f (diff) | |
download | ruby-openssl-ky/x509name-to-s-empty.tar.gz |
x509name: fix handling of X509_NAME_{oneline,print_ex}() return valueky/x509name-to-s-empty
X509_NAME_print_ex() behaves differently depending on the passed flags.
When XN_FLAG_COMPAT is specified, it returns either 1 on success or 0
on error. Otherwise, it returns the byte size written or -1 on error.
This means 0 return is not necessarily an error.
Also, X509_NAME_oneline() return value needs to be checked as it may
fail with a NULL return.
Fixes: https://github.com/ruby/openssl/issues/200
Diffstat (limited to 'tool')
0 files changed, 0 insertions, 0 deletions