Commit 7527a2d7ccf2dc0d2459f496361d9b4d6e8a714f
1 parent
e320eacc
Exists in
master
and in
1 other branch
Fixing behavior on self signed certificate.
Showing
4 changed files
with
20 additions
and
21 deletions
Show diff stats
configure.ac
... | ... | @@ -389,11 +389,11 @@ dnl SSL Security options |
389 | 389 | dnl --------------------------------------------------------------------------- |
390 | 390 | |
391 | 391 | AC_ARG_ENABLE([self-signed-cert-check], |
392 | - [AS_HELP_STRING([--enable-self-signed-cert-check], [Reject SSL connection when host presents a self signed certificate])], | |
392 | + [AS_HELP_STRING([--enable-self-signed-cert-check], [Emit Warning when host presents a self signed certificate])], | |
393 | 393 | [ |
394 | 394 | app_cv_self_signed_certs="$enableval" |
395 | 395 | ],[ |
396 | - app_cv_self_signed_certs="no" | |
396 | + app_cv_self_signed_certs="yes" | |
397 | 397 | ]) |
398 | 398 | |
399 | 399 | if test "$app_cv_self_signed_certs" == "yes"; then |
... | ... | @@ -518,7 +518,7 @@ AC_ARG_WITH([sdk-version], [AS_HELP_STRING([--with-sdk-version], [Setup library |
518 | 518 | AC_DEFINE(LIB3270_SDK_VERSION,$app_cv_sdkversion,[The SDK version number]) |
519 | 519 | AC_SUBST(LIB3270_SDK_VERSION,$app_cv_sdkversion) |
520 | 520 | |
521 | -AC_ARG_WITH([default-host], [AS_HELP_STRING([--with-default-host], [Set lib3270 default host url])], | |
521 | +AC_ARG_WITH([default-host], [AS_HELP_STRING([--with-default-host], [Set lib3270 default host url])], | |
522 | 522 | [ app_default_host="\"$withval\""], |
523 | 523 | [ app_default_host=""]) |
524 | 524 | |
... | ... | @@ -650,7 +650,7 @@ case "$host" in |
650 | 650 | |
651 | 651 | *-apple-darwin*) |
652 | 652 | AC_PATH_TOOL([CURLCONFIG], [curl-config], [no]) |
653 | - | |
653 | + | |
654 | 654 | if test x$CURLCONFIG = xno; then |
655 | 655 | AC_MSG_NOTICE([Building without CURL support]) |
656 | 656 | AC_SUBST(LIBCURL_CFLAGS) |
... | ... | @@ -662,13 +662,13 @@ case "$host" in |
662 | 662 | AC_SUBST(LIBCURL_LIBS,"$($CURLCONFIG --libs)") |
663 | 663 | fi |
664 | 664 | ;; |
665 | - | |
665 | + | |
666 | 666 | *) |
667 | 667 | PKG_CHECK_MODULES( [LIBCURL], [libcurl], AC_DEFINE(HAVE_LIBCURL,[],[Do we have libcurl?]), AC_MSG_ERROR([libcurl not present.]) ) |
668 | 668 | AC_SUBST(LIBCURL_CFLAGS) |
669 | 669 | AC_SUBST(LIBCURL_LIBS) |
670 | 670 | ;; |
671 | - | |
671 | + | |
672 | 672 | esac |
673 | 673 | |
674 | 674 | dnl --------------------------------------------------------------------------- | ... | ... |
rpm/_service
... | ... | @@ -10,11 +10,10 @@ |
10 | 10 | </service> |
11 | 11 | |
12 | 12 | <!-- https://github.com/openSUSE/obs-service-extract_file --> |
13 | - | |
14 | - <service name="extract_file"> | |
13 | + <!-- service name="extract_file"> | |
15 | 14 | <param name="archive">*.tar</param> |
16 | 15 | <param name="files">*/rpm/lib3270.spec</param> |
17 | - </service> | |
16 | + </service --> | |
18 | 17 | |
19 | 18 | <service name="extract_file"> |
20 | 19 | <param name="archive">*.tar</param> | ... | ... |
rpm/lib3270.spec
1 | 1 | # |
2 | 2 | # spec file for package lib3270 |
3 | 3 | # |
4 | -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. | |
4 | +# Copyright (c) 2022 SUSE LLC | |
5 | 5 | # Copyright (c) <2008> <Banco do Brasil S.A.> |
6 | 6 | # |
7 | 7 | # All modifications and additions to the file contributed by third parties |
... | ... | @@ -29,15 +29,15 @@ BuildRequires: autoconf >= 2.61 |
29 | 29 | BuildRequires: automake |
30 | 30 | BuildRequires: binutils |
31 | 31 | BuildRequires: coreutils |
32 | -BuildRequires: libtool | |
33 | 32 | BuildRequires: fdupes |
34 | 33 | BuildRequires: gcc-c++ |
35 | 34 | BuildRequires: gettext-devel |
35 | +BuildRequires: libtool | |
36 | 36 | BuildRequires: m4 |
37 | 37 | BuildRequires: pkgconfig |
38 | +BuildRequires: xz | |
38 | 39 | BuildRequires: pkgconfig(libcurl) |
39 | 40 | BuildRequires: pkgconfig(libssl) |
40 | -BuildRequires: xz | |
41 | 41 | |
42 | 42 | %if 0%{?centos_version} |
43 | 43 | # CENTOS Requires gdb for debuginfo |
... | ... | @@ -54,8 +54,8 @@ For more details, see https://softwarepublico.gov.br/social/pw3270/ . |
54 | 54 | %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} |
55 | 55 | |
56 | 56 | %package -n %{name}-%{_libvrs} |
57 | -Summary: TN3270 Access library | |
58 | -Group: Development/Libraries/C and C++ | |
57 | +Summary: TN3270 Access library | |
58 | +Group: Development/Libraries/C and C++ | |
59 | 59 | |
60 | 60 | %description -n %{name}-%{_libvrs} |
61 | 61 | TN3270 access library, originally designed as part of the pw3270 application. |
... | ... | @@ -63,9 +63,9 @@ TN3270 access library, originally designed as part of the pw3270 application. |
63 | 63 | For more details, see https://softwarepublico.gov.br/social/pw3270/ . |
64 | 64 | |
65 | 65 | %package devel |
66 | -Summary: TN3270 Access library development files | |
67 | -Requires: %{name}-%{_libvrs} = %{version} | |
68 | -Group: Development/Libraries/C and C++ | |
66 | +Summary: TN3270 Access library development files | |
67 | +Requires: %{name}-%{_libvrs} = %{version} | |
68 | +Group: Development/Libraries/C and C++ | |
69 | 69 | |
70 | 70 | %description devel |
71 | 71 | Header files for the TN3270 access library. | ... | ... |
src/network_modules/openssl/messages.c
... | ... | @@ -244,9 +244,9 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { |
244 | 244 | .message = { |
245 | 245 | .name = "X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT", |
246 | 246 | #ifdef SSL_ENABLE_SELF_SIGNED_CERT_CHECK |
247 | - .type = LIB3270_NOTIFY_SECURE, | |
248 | -#else | |
249 | 247 | .type = LIB3270_NOTIFY_WARNING, |
248 | +#else | |
249 | + .type = LIB3270_NOTIFY_SECURE, | |
250 | 250 | #endif // SSL_ENABLE_SELF_SIGNED_CERT_CHECK |
251 | 251 | .icon = "security-medium", |
252 | 252 | .summary = N_( "Self signed certificate" ), |
... | ... | @@ -260,9 +260,9 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { |
260 | 260 | .message = { |
261 | 261 | .name = "X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN", |
262 | 262 | #ifdef SSL_ENABLE_SELF_SIGNED_CERT_CHECK |
263 | - .type = LIB3270_NOTIFY_SECURE, | |
264 | -#else | |
265 | 263 | .type = LIB3270_NOTIFY_INFO, |
264 | +#else | |
265 | + .type = LIB3270_NOTIFY_SECURE, | |
266 | 266 | #endif // SSL_ENABLE_SELF_SIGNED_CERT_CHECK |
267 | 267 | .icon = "security-low", |
268 | 268 | .label = N_("Continue"), | ... | ... |