Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marvin Scholz
libaacs
Commits
277642b2
Commit
277642b2
authored
Jan 14, 2016
by
npzacs
Browse files
Cosmetics
parent
ae8499ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/file/keydbcfg.c
View file @
277642b2
...
...
@@ -212,17 +212,17 @@ static int _parse_pk_file(config_file *cf, FILE *fp)
pk_list
*
e
=
calloc
(
1
,
sizeof
(
pk_list
));
if
(
e
)
{
hexstring_to_hex_array
(
e
->
key
,
16
,
str
);
hexstring_to_hex_array
(
e
->
key
,
16
,
str
);
if
(
_is_duplicate_pk
(
cf
->
pkl
,
e
->
key
))
{
BD_DEBUG
(
DBG_FILE
,
"Skipping duplicate processing key %s
\n
"
,
str
);
X_FREE
(
e
);
}
else
{
e
->
next
=
cf
->
pkl
;
cf
->
pkl
=
e
;
}
if
(
_is_duplicate_pk
(
cf
->
pkl
,
e
->
key
))
{
BD_DEBUG
(
DBG_FILE
,
"Skipping duplicate processing key %s
\n
"
,
str
);
X_FREE
(
e
);
}
else
{
e
->
next
=
cf
->
pkl
;
cf
->
pkl
=
e
;
}
result
++
;
result
++
;
}
}
X_FREE
(
str
);
...
...
@@ -273,17 +273,17 @@ static int _parse_cert_file(config_file *cf, FILE *fp)
cert_list
*
e
=
calloc
(
1
,
sizeof
(
cert_list
));
if
(
e
)
{
hexstring_to_hex_array
(
e
->
host_priv_key
,
20
,
host_priv_key
);
hexstring_to_hex_array
(
e
->
host_cert
,
92
,
host_cert
);
hexstring_to_hex_array
(
e
->
host_priv_key
,
20
,
host_priv_key
);
hexstring_to_hex_array
(
e
->
host_cert
,
92
,
host_cert
);
if
(
_is_duplicate_cert
(
cf
->
host_cert_list
,
e
))
{
BD_DEBUG
(
DBG_FILE
,
"Skipping duplicate certificate entry %s %s
\n
"
,
host_priv_key
,
host_cert
);
X_FREE
(
e
);
}
else
{
e
->
next
=
cf
->
host_cert_list
;
cf
->
host_cert_list
=
e
;
result
=
1
;
}
if
(
_is_duplicate_cert
(
cf
->
host_cert_list
,
e
))
{
BD_DEBUG
(
DBG_FILE
,
"Skipping duplicate certificate entry %s %s
\n
"
,
host_priv_key
,
host_cert
);
X_FREE
(
e
);
}
else
{
e
->
next
=
cf
->
host_cert_list
;
cf
->
host_cert_list
=
e
;
result
=
1
;
}
}
}
X_FREE
(
host_priv_key
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment