Duplicate code refactored
authorKaoru Toda <kunnpuu@gmail.com>
Fri, 6 Apr 2018 12:42:31 +0000 (08:42 -0400)
committerRich Salz <rsalz@openssl.org>
Fri, 6 Apr 2018 12:42:31 +0000 (08:42 -0400)
commit69b15002913c1b85b0a9d03e11a6608fb153d6bd
tree830f4fcbbc1e12310497231703a48e567ab482a1
parente65c959f1fd5469ba96fceb68ce8b7c8d52edb39
Duplicate code refactored

add_attribute_object and add_DN_object have similar code, so move
it into a common function build_data.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4566)
apps/req.c