|
|
@@ -1,42 +1,20 @@ |
|
|
diff -Nurd -x'*~' gdcm-2.6.1.orig/Source/Common/gdcmOpenSSLP7CryptographicMessageSyntax.cxx gdcm-2.6.1/Source/Common/gdcmOpenSSLP7CryptographicMessageSyntax.cxx |
|
|
--- gdcm-2.6.1.orig/Source/Common/gdcmOpenSSLP7CryptographicMessageSyntax.cxx 2015-11-02 06:09:31.000000000 -0500 |
|
|
+++ gdcm-2.6.1/Source/Common/gdcmOpenSSLP7CryptographicMessageSyntax.cxx 2018-01-07 15:16:35.000000000 -0500 |
|
|
@@ -285,7 +285,7 @@ |
|
|
::PKCS7 *p7; |
|
|
#undef PKCS7_SIGNER_INFO |
|
|
::PKCS7_SIGNER_INFO *si; |
|
|
- X509_STORE_CTX cert_ctx; |
|
|
+ X509_STORE_CTX *cert_ctx=NULL; |
|
|
X509_STORE *cert_store=NULL; |
|
|
BIO *data,*detached=NULL,*p7bio=NULL; |
|
|
char buf[1024*4]; |
|
|
@@ -331,6 +331,7 @@ |
|
|
// } |
|
|
|
|
|
|
|
|
+ cert_ctx=X509_STORE_CTX_new(); |
|
|
/* This stuff is being setup for certificate verification. |
|
|
* When using SSL, it could be replaced with a |
|
|
* cert_stre=SSL_CTX_get_cert_store(ssl_ctx); */ |
|
|
@@ -378,13 +379,14 @@ |
|
|
{ |
|
|
//si=my_sk_PKCS7_SIGNER_INFO_value(sk,i); |
|
|
si=sk_PKCS7_SIGNER_INFO_value(sk,i); |
|
|
- i=PKCS7_dataVerify(cert_store,&cert_ctx,p7bio,p7,si); |
|
|
+ i=PKCS7_dataVerify(cert_store,cert_ctx,p7bio,p7,si); |
|
|
if (i <= 0) |
|
|
goto err; |
|
|
else |
|
|
fprintf(stderr,"Signature verified\n"); |
|
|
} |
|
|
} |
|
|
+ X509_STORE_CTX_free(cert_ctx); |
|
|
X509_STORE_free(cert_store); |
|
|
|
|
|
BIO_free_all(p7bio); |
|
|
diff -Nurd -x'*~' gdcm-2.6.1.orig/Utilities/gdcmjpeg/jdcoefct.c gdcm-2.6.1/Utilities/gdcmjpeg/jdcoefct.c |
|
|
--- gdcm-2.6.1.orig/Utilities/gdcmjpeg/jdcoefct.c 2015-11-02 06:09:31.000000000 -0500 |
|
|
+++ gdcm-2.6.1/Utilities/gdcmjpeg/jdcoefct.c 2018-01-07 16:02:27.000000000 -0500 |
|
|
diff -ruN gdcm-2.6.9.orig/Utilities/doxygen/CMakeLists.txt gdcm-2.6.9/Utilities/doxygen/CMakeLists.txt |
|
|
--- gdcm-2.6.9.orig/Utilities/doxygen/CMakeLists.txt 2017-06-29 03:22:56.000000000 -0500 |
|
|
+++ gdcm-2.6.9/Utilities/doxygen/CMakeLists.txt 2018-03-14 04:55:14.000000000 -0500 |
|
|
@@ -267,8 +267,8 @@ |
|
|
|
|
|
set(DOCBOOK_REWRITE_PREFIX_FOUND FALSE) |
|
|
foreach(line ${xml_catalog}) |
|
|
- string(REGEX MATCH "^.*systemIdStartString=\"http://docbook.sourceforge.net/release/xsl-ns/\".*" out1 ${line}) |
|
|
- string(REGEX REPLACE "^.*systemIdStartString=\"http://docbook.sourceforge.net/release/xsl-ns/\".*\"([A-Za-z ]*)\".*" "\\1" output_variable ${line}) |
|
|
+ string(REGEX MATCH "^.*systemIdStartString=\"http://docbook.sourceforge.net/release/xsl-ns/current\".*" out1 ${line}) |
|
|
+ string(REGEX REPLACE "^.*systemIdStartString=\"http://docbook.sourceforge.net/release/xsl-ns/current\".*\"([A-Za-z ]*)\".*" "\\1" output_variable ${line}) |
|
|
if(out1) |
|
|
message(STATUS "Your docbook install was found here :${output_variable}") |
|
|
set(DOCBOOK_REWRITE_PREFIX_FOUND TRUE) |
|
|
diff -ruN gdcm-2.6.9.orig/Utilities/gdcmjpeg/jdcoefct.c gdcm-2.6.9/Utilities/gdcmjpeg/jdcoefct.c |
|
|
--- gdcm-2.6.9.orig/Utilities/gdcmjpeg/jdcoefct.c 2017-06-29 03:22:56.000000000 -0500 |
|
|
+++ gdcm-2.6.9/Utilities/gdcmjpeg/jdcoefct.c 2018-03-14 04:22:09.000000000 -0500 |
|
|
@@ -418,7 +418,7 @@ |
|
|
int * coef_bits; |
|
|
int * coef_bits_latch; |
|
|
@@ -46,90 +24,3 @@ diff -Nurd -x'*~' gdcm-2.6.1.orig/Utilities/gdcmjpeg/jdcoefct.c gdcm-2.6.1/Utili |
|
|
return FALSE; |
|
|
|
|
|
/* Allocate latch area if not already done */ |
|
|
diff -Nurd -x'*~' gdcm-2.6.1.orig/Utilities/gdcmjpeg/jdlhuff.c gdcm-2.6.1/Utilities/gdcmjpeg/jdlhuff.c |
|
|
--- gdcm-2.6.1.orig/Utilities/gdcmjpeg/jdlhuff.c 2015-11-02 06:09:31.000000000 -0500 |
|
|
+++ gdcm-2.6.1/Utilities/gdcmjpeg/jdlhuff.c 2018-01-07 15:45:03.000000000 -0500 |
|
|
@@ -123,7 +123,7 @@ |
|
|
|
|
|
#ifdef AVOID_TABLES |
|
|
|
|
|
-#define HUFF_EXTEND(x,s) ((x) < (1<<((s)-1)) ? (x) + (((-1)<<(s)) + 1) : (x)) |
|
|
+#define HUFF_EXTEND(x,s) ((x) < (1<<((s)-1)) ? (x) + (((-1u)<<(s)) + 1) : (x)) |
|
|
|
|
|
#else |
|
|
|
|
|
@@ -133,11 +133,11 @@ |
|
|
{ 0, 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, |
|
|
0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000 }; |
|
|
|
|
|
-static const int extend_offset[16] = /* entry n is (-1 << n) + 1 */ |
|
|
- { 0, ((-1)<<1) + 1, ((-1)<<2) + 1, ((-1)<<3) + 1, ((-1)<<4) + 1, |
|
|
- ((-1)<<5) + 1, ((-1)<<6) + 1, ((-1)<<7) + 1, ((-1)<<8) + 1, |
|
|
- ((-1)<<9) + 1, ((-1)<<10) + 1, ((-1)<<11) + 1, ((-1)<<12) + 1, |
|
|
- ((-1)<<13) + 1, ((-1)<<14) + 1, ((-1)<<15) + 1 }; |
|
|
+static const int extend_offset[16] = /* entry n is (-1u << n) + 1 */ |
|
|
+ { 0, ((-1u)<<1) + 1, ((-1u)<<2) + 1, ((-1u)<<3) + 1, ((-1u)<<4) + 1, |
|
|
+ ((-1u)<<5) + 1, ((-1u)<<6) + 1, ((-1u)<<7) + 1, ((-1u)<<8) + 1, |
|
|
+ ((-1u)<<9) + 1, ((-1u)<<10) + 1, ((-1u)<<11) + 1, ((-1u)<<12) + 1, |
|
|
+ ((-1u)<<13) + 1, ((-1u)<<14) + 1, ((-1u)<<15) + 1 }; |
|
|
|
|
|
#endif /* AVOID_TABLES */ |
|
|
|
|
|
diff -Nurd -x'*~' gdcm-2.6.1.orig/Utilities/gdcmjpeg/jdphuff.c gdcm-2.6.1/Utilities/gdcmjpeg/jdphuff.c |
|
|
--- gdcm-2.6.1.orig/Utilities/gdcmjpeg/jdphuff.c 2015-11-02 06:09:31.000000000 -0500 |
|
|
+++ gdcm-2.6.1/Utilities/gdcmjpeg/jdphuff.c 2018-01-07 15:45:03.000000000 -0500 |
|
|
@@ -201,7 +201,7 @@ |
|
|
|
|
|
#ifdef AVOID_TABLES |
|
|
|
|
|
-#define HUFF_EXTEND(x,s) ((x) < (1<<((s)-1)) ? (x) + (((-1)<<(s)) + 1) : (x)) |
|
|
+#define HUFF_EXTEND(x,s) ((x) < (1<<((s)-1)) ? (x) + (((-1u)<<(s)) + 1) : (x)) |
|
|
|
|
|
#else |
|
|
|
|
|
@@ -211,11 +211,11 @@ |
|
|
{ 0, 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, |
|
|
0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000 }; |
|
|
|
|
|
-static const int extend_offset[16] = /* entry n is (-1 << n) + 1 */ |
|
|
- { 0, ((-1)<<1) + 1, ((-1)<<2) + 1, ((-1)<<3) + 1, ((-1)<<4) + 1, |
|
|
- ((-1)<<5) + 1, ((-1)<<6) + 1, ((-1)<<7) + 1, ((-1)<<8) + 1, |
|
|
- ((-1)<<9) + 1, ((-1)<<10) + 1, ((-1)<<11) + 1, ((-1)<<12) + 1, |
|
|
- ((-1)<<13) + 1, ((-1)<<14) + 1, ((-1)<<15) + 1 }; |
|
|
+static const int extend_offset[16] = /* entry n is (-1u << n) + 1 */ |
|
|
+ { 0, ((-1u)<<1) + 1, ((-1u)<<2) + 1, ((-1u)<<3) + 1, ((-1u)<<4) + 1, |
|
|
+ ((-1u)<<5) + 1, ((-1u)<<6) + 1, ((-1u)<<7) + 1, ((-1u)<<8) + 1, |
|
|
+ ((-1u)<<9) + 1, ((-1u)<<10) + 1, ((-1u)<<11) + 1, ((-1u)<<12) + 1, |
|
|
+ ((-1u)<<13) + 1, ((-1u)<<14) + 1, ((-1u)<<15) + 1 }; |
|
|
|
|
|
#endif /* AVOID_TABLES */ |
|
|
|
|
|
diff -Nurd -x'*~' gdcm-2.6.1.orig/Utilities/gdcmjpeg/jdshuff.c gdcm-2.6.1/Utilities/gdcmjpeg/jdshuff.c |
|
|
--- gdcm-2.6.1.orig/Utilities/gdcmjpeg/jdshuff.c 2015-11-02 06:09:31.000000000 -0500 |
|
|
+++ gdcm-2.6.1/Utilities/gdcmjpeg/jdshuff.c 2018-01-07 15:45:03.000000000 -0500 |
|
|
@@ -146,7 +146,7 @@ |
|
|
|
|
|
#ifdef AVOID_TABLES |
|
|
|
|
|
-#define HUFF_EXTEND(x,s) ((x) < (1<<((s)-1)) ? (x) + (((-1)<<(s)) + 1) : (x)) |
|
|
+#define HUFF_EXTEND(x,s) ((x) < (1<<((s)-1)) ? (x) + (((-1u)<<(s)) + 1) : (x)) |
|
|
|
|
|
#else |
|
|
|
|
|
@@ -156,11 +156,11 @@ |
|
|
{ 0, 0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, |
|
|
0x0100, 0x0200, 0x0400, 0x0800, 0x1000, 0x2000, 0x4000 }; |
|
|
|
|
|
-static const int extend_offset[16] = /* entry n is (-1 << n) + 1 */ |
|
|
- { 0, ((-1)<<1) + 1, ((-1)<<2) + 1, ((-1)<<3) + 1, ((-1)<<4) + 1, |
|
|
- ((-1)<<5) + 1, ((-1)<<6) + 1, ((-1)<<7) + 1, ((-1)<<8) + 1, |
|
|
- ((-1)<<9) + 1, ((-1)<<10) + 1, ((-1)<<11) + 1, ((-1)<<12) + 1, |
|
|
- ((-1)<<13) + 1, ((-1)<<14) + 1, ((-1)<<15) + 1 }; |
|
|
+static const int extend_offset[16] = /* entry n is (-1u << n) + 1 */ |
|
|
+ { 0, ((-1u)<<1) + 1, ((-1u)<<2) + 1, ((-1u)<<3) + 1, ((-1u)<<4) + 1, |
|
|
+ ((-1u)<<5) + 1, ((-1u)<<6) + 1, ((-1u)<<7) + 1, ((-1u)<<8) + 1, |
|
|
+ ((-1u)<<9) + 1, ((-1u)<<10) + 1, ((-1u)<<11) + 1, ((-1u)<<12) + 1, |
|
|
+ ((-1u)<<13) + 1, ((-1u)<<14) + 1, ((-1u)<<15) + 1 }; |
|
|
|
|
|
#endif /* AVOID_TABLES */ |
|
|
|