Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96719e5

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

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-
#ifdefUSE_SSL
53+
#ifdefUSE_OPENSSL
5454
#include<openssl/sha.h>
5555
#endif
5656

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

7171
/* Context Structures for SHA-1/224/256/384/512 */
72-
#ifdefUSE_SSL
72+
#ifdefUSE_OPENSSL
7373
typedefSHA256_CTXpg_sha256_ctx;
7474
typedefSHA512_CTXpg_sha512_ctx;
7575
typedefSHA256_CTXpg_sha224_ctx;
@@ -89,7 +89,7 @@ typedef struct pg_sha512_ctx
8989
}pg_sha512_ctx;
9090
typedefstructpg_sha256_ctxpg_sha224_ctx;
9191
typedefstructpg_sha512_ctxpg_sha384_ctx;
92-
#endif/*USE_SSL */
92+
#endif/*USE_OPENSSL */
9393

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp