Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
febb976e
Commit
febb976e
authored
Jun 06, 2000
by
David Lawrence
Browse files
dnssafersa_verify() was failing because it used isc_buffer_used() where it
needed isc_buffer_base().
parent
616c83b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/sec/dst/bsafe_link.c
View file @
febb976e
...
...
@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: bsafe_link.c,v 1.2
3
2000/06/0
5 22:20:04
tale Exp $
* $Id: bsafe_link.c,v 1.2
4
2000/06/0
6 15:16:45
tale Exp $
*/
#if defined(DNSSAFE)
...
...
@@ -129,7 +129,8 @@ dnssafersa_sign(dst_context_t *dctx, isc_buffer_t *sig) {
if
(
B_CreateAlgorithmObject
(
&
rsaEncryptor
)
!=
0
)
return
(
ISC_R_NOMEMORY
);
if
(
B_SetAlgorithmInfo
(
rsaEncryptor
,
AI_PKCS_RSAPrivate
,
NULL_PTR
)
!=
0
)
if
(
B_SetAlgorithmInfo
(
rsaEncryptor
,
AI_PKCS_RSAPrivate
,
NULL_PTR
)
!=
0
)
goto
finalfail
;
if
(
B_EncryptInit
(
rsaEncryptor
,
rkey
->
rk_Private_Key
,
CHOOSER
,
...
...
@@ -232,7 +233,7 @@ dnssafersa_verify(dst_context_t *dctx, const isc_region_t *sig) {
* Skip PKCS#1 header in output from Decrypt function.
*/
if
(
memcmp
(
isc_buffer_base
(
&
digestbuf
),
(
char
*
)
isc_buffer_
u
se
d
(
&
work
)
+
sizeof
(
pkcs1
),
(
char
*
)
isc_buffer_
ba
se
(
&
work
)
+
sizeof
(
pkcs1
),
isc_buffer_usedlength
(
&
digestbuf
))
==
0
)
return
(
ISC_R_SUCCESS
);
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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