diff options
author | 2016-01-26 23:41:48 +0000 | |
---|---|---|
committer | 2016-01-26 23:41:48 +0000 | |
commit | 8799a2d3ee7d3e0bcd7cd963ce1816b6e8a1734b (patch) | |
tree | fa3ecf519f3c62c5bd8dfc6aa4f1323bfe056088 /lib/libssl/ssl_lib.c | |
parent | spacing (diff) | |
download | wireguard-openbsd-8799a2d3ee7d3e0bcd7cd963ce1816b6e8a1734b.tar.xz wireguard-openbsd-8799a2d3ee7d3e0bcd7cd963ce1816b6e8a1734b.zip |
Rework and simplify string argument parsing. All string arguments are at
most DPISTRLEN (32) characters so there is no need for fancy dynamic
growing strings. Use a DPISTRLEN long buffer and bail if it fills up.
Rename get_string() to get_dpistr() and get_string_argument() to
get_dpstr_argument() to emphasize they will return strings that fit
in DPISTRLEN.
Rework & simplify a pair of their consumers - do_rename_partition() and
do_change_type() - to be more obviously identitical to each other bar
the displayed verbiage.
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions