Changeset 14443
- Timestamp:
- Jan 7, 2015, 1:41:22 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r14441 r14443 97 97 set(OPENSSL_MINIMUM 0.9.4) 98 98 set(CYASSL_MINIMUM 3.0) 99 set(POLARSSL_MINIMUM 1. 3)99 set(POLARSSL_MINIMUM 1.2) 100 100 set(ZLIB_MINIMUM 1.2.3) 101 101 set(GTK_MINIMUM 3.4.0) -
trunk/configure.ac
r14441 r14443 51 51 CYASSL_MINIMUM=3.0 52 52 AC_SUBST(CYASSL_MINIMUM) 53 POLARSSL_MINIMUM=0x010 30000 # 1.353 POLARSSL_MINIMUM=0x01020000 # 1.2 54 54 AC_SUBST(POLARSSL_MINIMUM) 55 55 -
trunk/libtransmission/crypto-utils-polarssl.c
r14442 r14443 16 16 #include <polarssl/error.h> 17 17 #include <polarssl/sha1.h> 18 #include <polarssl/version.h> 18 19 19 20 #include "transmission.h" … … 111 112 tr_sha1_init (void) 112 113 { 113 sha1_context * handle = tr_new (sha1_context, 1); 114 sha1_context * handle = tr_new0 (sha1_context, 1); 115 116 #if POLARSSL_VERSION_NUMBER >= 0x01030800 117 sha1_init (handle); 118 #endif 119 114 120 sha1_starts (handle); 115 121 return handle; … … 143 149 } 144 150 151 #if POLARSSL_VERSION_NUMBER >= 0x01030800 152 sha1_free (handle); 153 #endif 154 145 155 tr_free (handle); 146 156 return true; … … 154 164 tr_rc4_new (void) 155 165 { 156 return tr_new0 (arc4_context, 1); 166 arc4_context * handle = tr_new0 (arc4_context, 1); 167 168 #if POLARSSL_VERSION_NUMBER >= 0x01030800 169 arc4_init (handle); 170 #endif 171 172 return handle; 157 173 } 158 174 … … 160 176 tr_rc4_free (tr_rc4_ctx_t handle) 161 177 { 178 #if POLARSSL_VERSION_NUMBER >= 0x01030800 179 arc4_free (handle); 180 #endif 181 162 182 tr_free (handle); 163 183 } … … 206 226 assert (generator_num != NULL); 207 227 228 #if POLARSSL_VERSION_NUMBER >= 0x01030800 208 229 dhm_init (handle); 230 #endif 209 231 210 232 if (!check_result (mpi_read_binary (&handle->P, prime_num, prime_num_length)) ||
Note: See TracChangeset
for help on using the changeset viewer.