summaryrefslogtreecommitdiff
path: root/ct_usermgmt.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-15 18:42:03 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-15 18:42:03 +0200
commit5bc9299f0d1b0baf220b75da86520606e87c4b3a (patch)
treefb520a3b34349fb588171ce85bb274d0b948d04b /ct_usermgmt.c
parentb7609f8d52cc2dbd1b3b2c08e95e7529368a951c (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_usermgmt.c')
-rw-r--r--ct_usermgmt.c8
1 files changed, 1 insertions, 7 deletions
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: