postgrespro.git / summary / log / commit / refs

commit    3fa44a30049826bfe2fd58eec0e8acabd5757411
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Thu Jun 04 04:02:59 2020 +0000

    Fix comment in be-secure-openssl.c
    
    Since 573bd08, hardcoded DH parameters have been moved to a different
    file, making the comment on top of load_dh_buffer() incorrect.
    
    Author: Daniel Gustafsson
    Discussion: https://postgr.es/m/D9492CCB-9A91-4181-A847-1779630BE2A7@yesql.se


src/backend/libpq/be-secure-openssl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c index 78a865d23b..8adf64c78e 100644 --- a/src/backend/libpq/be-secure-openssl.c +++ b/src/backend/libpq/be-secure-openssl.c @@ -872,8 +872,9 @@ load_dh_file(char *filename, bool isServerStart) /* * Load hardcoded DH parameters. * - * To prevent problems if the DH parameters files don't even - * exist, we can load DH parameters hardcoded into this file. + * If DH parameters cannot be loaded from a specified file, we can load + * the hardcoded DH parameters supplied with the backend to prevent + * problems. */ static DH * load_dh_buffer(const char *buffer, size_t len) [parent: c1669fd5812a]