From 48508e8b601de90c1b9860274119e470f619cfad Mon Sep 17 00:00:00 2001 From: Di-Shi Sun Date: Fri, 25 Apr 2025 15:11:17 -0400 Subject: [PATCH 1/2] Updated to support 603+. --- RELNOTES.txt | 4 ++++ include/osp/osperrno.h | 1 + include/osp/osplibversion.h | 2 +- src/osputils.c | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/RELNOTES.txt b/RELNOTES.txt index 38816ab..7105bf0 100644 --- a/RELNOTES.txt +++ b/RELNOTES.txt @@ -811,3 +811,7 @@ Version 4.30.0 - 2024-12-09 Version 4.30.1 - 2025-01-14 * Added base64 decode input size check. + +Version 4.31.0 - 2025-04-25 +* Updated to support 603+. + diff --git a/include/osp/osperrno.h b/include/osp/osperrno.h index c430de8..ddf46f2 100644 --- a/include/osp/osperrno.h +++ b/include/osp/osperrno.h @@ -124,6 +124,7 @@ #define OSPC_ERR_TRAN_CALLED_FILTERING (OSPC_ERR_TRAN_MODULE + 515) #define OSPC_ERR_TRAN_GLOBAL_ERROR (OSPC_ERR_TRAN_MODULE + 516) #define OSPC_ERR_TRAN_DECLINE (OSPC_ERR_TRAN_MODULE + 517) +#define OSPC_ERR_TRAN_NETWORK_BLOCKED (OSPC_ERR_TRAN_MODULE + 518) #define OSPC_ERR_SEC_MODULE 12000 #define OSPC_ERR_SEC_NOT_ENOUGH_SPACE_FOR_COPY (OSPC_ERR_SEC_MODULE + 10) diff --git a/include/osp/osplibversion.h b/include/osp/osplibversion.h index b46536a..58aebed 100644 --- a/include/osp/osplibversion.h +++ b/include/osp/osplibversion.h @@ -20,7 +20,7 @@ #define _OSPLIBVERSION_H #define OSP_CLIENT_TOOLKIT_VERSION_MAJOR 4 -#define OSP_CLIENT_TOOLKIT_VERSION_MINOR 30 +#define OSP_CLIENT_TOOLKIT_VERSION_MINOR 31 #define OSP_CLIENT_TOOLKIT_VERSION_BUGFIX 0 #endif /* _OSPLIBVERSION_H */ diff --git a/src/osputils.c b/src/osputils.c index 6b00896..23104b1 100644 --- a/src/osputils.c +++ b/src/osputils.c @@ -165,6 +165,9 @@ int OSPPUtilGetErrorFromStatus( case 603: errorcode = OSPC_ERR_TRAN_DECLINE; break; + case 9603: + errorcode = OSPC_ERR_TRAN_NETWORK_BLOCKED; + break; case 999: errorcode = OSPC_ERR_TRAN_GENERIC_FAILURE; break; From a54deb5764fae04fa634b13b982c1823d9ab7978 Mon Sep 17 00:00:00 2001 From: Di-Shi Sun Date: Fri, 25 Apr 2025 15:14:36 -0400 Subject: [PATCH 2/2] Formatted. --- include/osp/osperrno.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osp/osperrno.h b/include/osp/osperrno.h index ddf46f2..65864d4 100644 --- a/include/osp/osperrno.h +++ b/include/osp/osperrno.h @@ -124,7 +124,7 @@ #define OSPC_ERR_TRAN_CALLED_FILTERING (OSPC_ERR_TRAN_MODULE + 515) #define OSPC_ERR_TRAN_GLOBAL_ERROR (OSPC_ERR_TRAN_MODULE + 516) #define OSPC_ERR_TRAN_DECLINE (OSPC_ERR_TRAN_MODULE + 517) -#define OSPC_ERR_TRAN_NETWORK_BLOCKED (OSPC_ERR_TRAN_MODULE + 518) +#define OSPC_ERR_TRAN_NETWORK_BLOCKED (OSPC_ERR_TRAN_MODULE + 518) #define OSPC_ERR_SEC_MODULE 12000 #define OSPC_ERR_SEC_NOT_ENOUGH_SPACE_FOR_COPY (OSPC_ERR_SEC_MODULE + 10)