Skip to content

Commit 96719e5

Browse files
committed
Use OpenSSL-specific ifdefs in sha2.h
In order to separate OpenSSL's SHA symbols, this header has been using USE_SSL, which is equivalent to USE_OPENSSL. There is now only one SSL implementation included in the tree, so this works fine, but when adding a new SSL implementation this would run into failures. Author: Daniel Gustafsson Discussion: https://postgr.es/m/0DF29010-CE26-4F51-85A6-9C8ABF5536F9@yesql.se
1 parent d25ea01 commit 96719e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/include/common/sha2.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#ifndef _PG_SHA2_H_
5151
#define _PG_SHA2_H_
5252

53-
#ifdef USE_SSL
53+
#ifdef USE_OPENSSL
5454
#include <openssl/sha.h>
5555
#endif
5656

@@ -69,7 +69,7 @@
6969
#define PG_SHA512_DIGEST_STRING_LENGTH (PG_SHA512_DIGEST_LENGTH * 2 + 1)
7070

7171
/* Context Structures for SHA-1/224/256/384/512 */
72-
#ifdef USE_SSL
72+
#ifdef USE_OPENSSL
7373
typedef SHA256_CTX pg_sha256_ctx;
7474
typedef SHA512_CTX pg_sha512_ctx;
7575
typedef SHA256_CTX pg_sha224_ctx;
@@ -89,7 +89,7 @@ typedef struct pg_sha512_ctx
8989
} pg_sha512_ctx;
9090
typedef struct pg_sha256_ctx pg_sha224_ctx;
9191
typedef struct pg_sha512_ctx pg_sha384_ctx;
92-
#endif /* USE_SSL */
92+
#endif /* USE_OPENSSL */
9393

9494
/* Interface routines for SHA224/256/384/512 */
9595
extern void pg_sha224_init(pg_sha224_ctx *ctx);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy