VMS: add alias macros to avoid 31 character symbol name limit warning
authorRichard Levitte <levitte@openssl.org>
Thu, 15 Mar 2018 19:01:11 +0000 (20:01 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 15 Mar 2018 21:27:49 +0000 (22:27 +0100)
Affected symbol names:

generate_stateless_cookie_callback
verify_stateless_cookie_callback

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5633)

apps/s_apps.h

index 1ca8ff95c7573465d8804b485fce5761b9b59d93..24541610e1e4aaa85f33b0179e0fb970d0af88cd 100644 (file)
@@ -58,6 +58,11 @@ int generate_cookie_callback(SSL *ssl, unsigned char *cookie,
 int verify_cookie_callback(SSL *ssl, const unsigned char *cookie,
                            unsigned int cookie_len);
 
+#ifdef __VMS                     /* 31 char symbol name limit */
+# define generate_stateless_cookie_callback      generate_stateless_cookie_cb
+# define verify_stateless_cookie_callback        verify_stateless_cookie_cb
+#endif
+
 int generate_stateless_cookie_callback(SSL *ssl, unsigned char *cookie,
                                        size_t *cookie_len);
 int verify_stateless_cookie_callback(SSL *ssl, const unsigned char *cookie,