diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-15 18:42:03 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-15 18:42:03 +0200 |
commit | 5bc9299f0d1b0baf220b75da86520606e87c4b3a (patch) | |
tree | fb520a3b34349fb588171ce85bb274d0b948d04b /ct_servmgmt.c | |
parent | b7609f8d52cc2dbd1b3b2c08e95e7529368a951c (diff) |
curve: simplify curve25519_proto_init and others
Simplify the function curve25519_proto_init() and also have minor
cleanups in other related ones.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ct_servmgmt.c')
-rw-r--r-- | ct_servmgmt.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ct_servmgmt.c b/ct_servmgmt.c index 38eb9c5..f069ab9 100644 --- a/ct_servmgmt.c +++ b/ct_servmgmt.c @@ -60,7 +60,6 @@ enum parse_states { static int parse_line(char *line, char *homedir) { - int ret; char *str; enum parse_states s = PARSE_ALIAS; struct server_store *elem; @@ -101,12 +100,7 @@ static int parse_line(char *line, char *homedir) return -EINVAL; memcpy(elem->publickey, pkey, sizeof(elem->publickey)); memcpy(elem->auth_token, pkey, sizeof(elem->auth_token)); - ret = curve25519_proto_init(&elem->proto_inf, - elem->publickey, - sizeof(elem->publickey), - homedir, 1); - if (ret) - return -EIO; + curve25519_proto_init(&elem->proto_inf, elem->publickey, sizeof(elem->publickey)); s = PARSE_DONE; break; case PARSE_DONE: |