Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
635
Issues
635
List
Boards
Labels
Service Desk
Milestones
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
c75e9c76
Commit
c75e9c76
authored
Sep 12, 2017
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4714. [port] openbsd/libressl: add support for building with
--enable-openssl-hash. [RT #45982]
parent
9dd9d36e
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
26 additions
and
19 deletions
+26
-19
CHANGES
CHANGES
+3
-0
lib/isc/aes.c
lib/isc/aes.c
+4
-4
lib/isc/hmacmd5.c
lib/isc/hmacmd5.c
+1
-1
lib/isc/hmacsha.c
lib/isc/hmacsha.c
+1
-1
lib/isc/include/isc/hmacmd5.h
lib/isc/include/isc/hmacmd5.h
+1
-1
lib/isc/include/isc/hmacsha.h
lib/isc/include/isc/hmacsha.h
+1
-1
lib/isc/include/isc/md5.h
lib/isc/include/isc/md5.h
+1
-1
lib/isc/include/isc/sha1.h
lib/isc/include/isc/sha1.h
+1
-1
lib/isc/include/isc/sha2.h
lib/isc/include/isc/sha2.h
+6
-2
lib/isc/md5.c
lib/isc/md5.c
+1
-1
lib/isc/sha1.c
lib/isc/sha1.c
+1
-1
lib/isc/sha2.c
lib/isc/sha2.c
+5
-5
No files found.
CHANGES
View file @
c75e9c76
4714. [port] openbsd/libressl: add support for building with
--enable-openssl-hash. [RT #45982]
--- 9.12.0a1 released ---
4713. [func] Added support for the DNS Response Policy Service
...
...
lib/isc/aes.c
View file @
c75e9c76
...
...
@@ -25,7 +25,7 @@
#include <openssl/opensslv.h>
#include <openssl/evp.h>
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
#define EVP_CIPHER_CTX_new() &(_context), EVP_CIPHER_CTX_init(&_context)
#define EVP_CIPHER_CTX_free(c) RUNTIME_CHECK(EVP_CIPHER_CTX_cleanup(c) == 1)
#endif
...
...
@@ -34,7 +34,7 @@ void
isc_aes128_crypt
(
const
unsigned
char
*
key
,
const
unsigned
char
*
in
,
unsigned
char
*
out
)
{
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
EVP_CIPHER_CTX
_context
;
#endif
EVP_CIPHER_CTX
*
c
;
...
...
@@ -54,7 +54,7 @@ void
isc_aes192_crypt
(
const
unsigned
char
*
key
,
const
unsigned
char
*
in
,
unsigned
char
*
out
)
{
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
EVP_CIPHER_CTX
_context
;
#endif
EVP_CIPHER_CTX
*
c
;
...
...
@@ -74,7 +74,7 @@ void
isc_aes256_crypt
(
const
unsigned
char
*
key
,
const
unsigned
char
*
in
,
unsigned
char
*
out
)
{
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
EVP_CIPHER_CTX
_context
;
#endif
EVP_CIPHER_CTX
*
c
;
...
...
lib/isc/hmacmd5.c
View file @
c75e9c76
...
...
@@ -32,7 +32,7 @@
#endif
#ifdef ISC_PLATFORM_OPENSSLHASH
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
#define HMAC_CTX_new() &(ctx->_ctx), HMAC_CTX_init(&(ctx->_ctx))
#define HMAC_CTX_free(ptr) HMAC_CTX_cleanup(ptr)
#endif
...
...
lib/isc/hmacsha.c
View file @
c75e9c76
...
...
@@ -30,7 +30,7 @@
#endif
#ifdef ISC_PLATFORM_OPENSSLHASH
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
#define HMAC_CTX_new() &(ctx->_ctx), HMAC_CTX_init(&(ctx->_ctx))
#define HMAC_CTX_free(ptr) HMAC_CTX_cleanup(ptr)
#endif
...
...
lib/isc/include/isc/hmacmd5.h
View file @
c75e9c76
...
...
@@ -33,7 +33,7 @@
typedef
struct
{
HMAC_CTX
*
ctx
;
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
HMAC_CTX
_ctx
;
#endif
}
isc_hmacmd5_t
;
...
...
lib/isc/include/isc/hmacsha.h
View file @
c75e9c76
...
...
@@ -34,7 +34,7 @@
typedef
struct
{
HMAC_CTX
*
ctx
;
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
HMAC_CTX
_ctx
;
#endif
}
isc_hmacsha_t
;
...
...
lib/isc/include/isc/md5.h
View file @
c75e9c76
...
...
@@ -51,7 +51,7 @@
typedef
struct
{
EVP_MD_CTX
*
ctx
;
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
EVP_MD_CTX
_ctx
;
#endif
}
isc_md5_t
;
...
...
lib/isc/include/isc/sha1.h
View file @
c75e9c76
...
...
@@ -32,7 +32,7 @@
typedef
struct
{
EVP_MD_CTX
*
ctx
;
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
EVP_MD_CTX
_ctx
;
#endif
}
isc_sha1_t
;
...
...
lib/isc/include/isc/sha2.h
View file @
c75e9c76
...
...
@@ -70,13 +70,17 @@
/*** SHA-256/384/512 Context Structures *******************************/
#if
def ISC_PLATFORM_OPENSSLHASH
#if
defined(ISC_PLATFORM_OPENSSLHASH)
#include <openssl/opensslv.h>
#include <openssl/evp.h>
#endif
#if defined(ISC_PLATFORM_OPENSSLHASH) && !defined(LIBRESSL_VERSION_NUMBER)
typedef
struct
{
EVP_MD_CTX
*
ctx
;
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
EVP_MD_CTX
_ctx
;
#endif
}
isc_sha2_t
;
...
...
lib/isc/md5.c
View file @
c75e9c76
...
...
@@ -45,7 +45,7 @@
#include <isc/util.h>
#ifdef ISC_PLATFORM_OPENSSLHASH
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
#define EVP_MD_CTX_new() &(ctx->_ctx)
#define EVP_MD_CTX_free(ptr) EVP_MD_CTX_cleanup(ptr)
#endif
...
...
lib/isc/sha1.c
View file @
c75e9c76
...
...
@@ -39,7 +39,7 @@
#endif
#ifdef ISC_PLATFORM_OPENSSLHASH
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|| defined(LIBRESSL_VERSION_NUMBER)
#define EVP_MD_CTX_new() &(context->_ctx)
#define EVP_MD_CTX_free(ptr) EVP_MD_CTX_cleanup(ptr)
#endif
...
...
lib/isc/sha2.c
View file @
c75e9c76
...
...
@@ -58,7 +58,7 @@
#include <pk11/pk11.h>
#endif
#if
def ISC_PLATFORM_OPENSSLHASH
#if
defined(ISC_PLATFORM_OPENSSLHASH) && !defined(LIBRESSL_VERSION_NUMBER)
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#define EVP_MD_CTX_new() &(context->_ctx)
#define EVP_MD_CTX_free(ptr) EVP_MD_CTX_cleanup(ptr)
...
...
@@ -1604,7 +1604,7 @@ isc_sha224_end(isc_sha224_t *context, char buffer[]) {
}
*
buffer
=
(
char
)
0
;
}
else
{
#if
def ISC_PLATFORM_OPENSSLHASH
#if
defined(ISC_PLATFORM_OPENSSLHASH) && !defined(LIBRESSL_VERSION_NUMBER)
EVP_MD_CTX_reset
(
context
->
ctx
);
#elif PKCS11CRYPTO
pk11_return_session
(
context
);
...
...
@@ -1645,7 +1645,7 @@ isc_sha256_end(isc_sha256_t *context, char buffer[]) {
}
*
buffer
=
(
char
)
0
;
}
else
{
#if
def ISC_PLATFORM_OPENSSLHASH
#if
defined(ISC_PLATFORM_OPENSSLHASH) && !defined(LIBRESSL_VERSION_NUMBER)
EVP_MD_CTX_reset
(
context
->
ctx
);
#elif PKCS11CRYPTO
pk11_return_session
(
context
);
...
...
@@ -1686,7 +1686,7 @@ isc_sha512_end(isc_sha512_t *context, char buffer[]) {
}
*
buffer
=
(
char
)
0
;
}
else
{
#if
def ISC_PLATFORM_OPENSSLHASH
#if
defined(ISC_PLATFORM_OPENSSLHASH) && !defined(LIBRESSL_VERSION_NUMBER)
EVP_MD_CTX_reset
(
context
->
ctx
);
#elif PKCS11CRYPTO
pk11_return_session
(
context
);
...
...
@@ -1727,7 +1727,7 @@ isc_sha384_end(isc_sha384_t *context, char buffer[]) {
}
*
buffer
=
(
char
)
0
;
}
else
{
#if
def ISC_PLATFORM_OPENSSLHASH
#if
defined(ISC_PLATFORM_OPENSSLHASH) && !defined(LIBRESSL_VERSION_NUMBER)
EVP_MD_CTX_reset
(
context
->
ctx
);
#elif PKCS11CRYPTO
pk11_return_session
(
context
);
...
...
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