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
c0707105
Commit
c0707105
authored
May 21, 2004
by
Mark Andrews
Browse files
1642. [port] Support OpenSSL implementations which don't have
DSA support. [RT #11360]
parent
4451e24e
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
c0707105
1642. [port] Support OpenSSL implementations which don't have
DSA support. [RT #11360]
1641. [bug] Update the check-names description in ARM. [RT #11389]
1640. [bug] win32: isc_socket_cancel(ISC_SOCKCANCEL_ACCEPT) was
...
...
acconfig.h
View file @
c0707105
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: acconfig.h,v 1.4
4
2004/0
3/05 04:56:5
7 marka Exp $ */
/* $Id: acconfig.h,v 1.4
5
2004/0
5/21 08:09:2
7 marka Exp $ */
/***
*** This file is not to be included by any public header files, because
...
...
@@ -136,3 +136,6 @@ int sigwait(const unsigned int *set, int *sig);
/* Define if you are running under Compaq TruCluster.. */
#undef HAVE_TRUCLUSTER
/* Define if OpenSSL includes DSA support */
#undef HAVE_OPENSSL_DSA
configure.in
View file @
c0707105
...
...
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.35
6
$)
AC_REVISION($Revision: 1.35
7
$)
AC_INIT(lib/dns/name.c)
AC_PREREQ(2.13)
...
...
@@ -467,6 +467,14 @@ int main() {
[AC_MSG_RESULT(not compatible)
AC_MSG_ERROR(you need OpenSSL 0.9.6e/0.9.7-beta2 (or newer): CERT CA-2002-23)],
[AC_MSG_RESULT(assuming target platform has compatible version)]))
AC_MSG_CHECKING(for OpenSSL DSA support)
if test -f $use_openssl/include/openssl/dsa.h
then
AC_DEFINE(HAVE_OPENSSL_DSA)
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
CFLAGS="$saved_cflags"
LIBS="$saved_libs"
;;
...
...
lib/dns/sec/dst/dst_api.c
View file @
c0707105
...
...
@@ -18,7 +18,7 @@
/*
* Principal Author: Brian Wellington
* $Id: dst_api.c,v 1.11
4
2004/0
3/18 02:58:05
marka Exp $
* $Id: dst_api.c,v 1.11
5
2004/0
5/21 08:09:27
marka Exp $
*/
#include <config.h>
...
...
@@ -145,9 +145,11 @@ dst_lib_init(isc_mem_t *mctx, isc_entropy_t *ectx, unsigned int eflags) {
RETERR
(
dst__openssl_init
());
RETERR
(
dst__opensslrsa_init
(
&
dst_t_func
[
DST_ALG_RSAMD5
]));
RETERR
(
dst__opensslrsa_init
(
&
dst_t_func
[
DST_ALG_RSASHA1
]));
#ifdef HAVE_OPENSSL_DSA
RETERR
(
dst__openssldsa_init
(
&
dst_t_func
[
DST_ALG_DSA
]));
RETERR
(
dst__openssldh_init
(
&
dst_t_func
[
DST_ALG_DH
]));
#endif
RETERR
(
dst__openssldh_init
(
&
dst_t_func
[
DST_ALG_DH
]));
#endif
/* OPENSSL */
#ifdef GSSAPI
RETERR
(
dst__gssapi_init
(
&
dst_t_func
[
DST_ALG_GSSAPI
]));
#endif
...
...
@@ -1136,10 +1138,12 @@ algorithm_status(unsigned int alg) {
if
(
dst_algorithm_supported
(
alg
))
return
(
ISC_R_SUCCESS
);
#ifndef OPENSSL
if
(
alg
==
DST_ALG_RSAMD5
||
alg
==
DST_ALG_RSASHA1
||
alg
==
DST_ALG_DSA
||
alg
==
DST_ALG_DH
||
alg
==
DST_ALG_HMACMD5
)
return
(
DST_R_NOCRYPTO
);
#endif
return
(
DST_R_UNSUPPORTEDALG
);
}
...
...
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