From 5bc9299f0d1b0baf220b75da86520606e87c4b3a Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sat, 15 Jun 2013 18:42:03 +0200 Subject: 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 --- ct_usermgmt.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'ct_usermgmt.c') diff --git a/ct_usermgmt.c b/ct_usermgmt.c index 201c0c7..c303cd5 100644 --- a/ct_usermgmt.c +++ b/ct_usermgmt.c @@ -194,7 +194,6 @@ enum parse_states { static int parse_line(char *line, char *homedir) { - int ret; char *str; enum parse_states s = PARSE_USERNAME; struct user_store *elem; @@ -219,12 +218,7 @@ static int parse_line(char *line, char *homedir) if (__check_duplicate_pubkey(pkey, sizeof(pkey))) return -EINVAL; memcpy(elem->publickey, pkey, sizeof(elem->publickey)); - 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: -- cgit v1.2.3-54-g00ecf