Changeset 4626
- Timestamp:
- 02/14/07 17:47:36 (2 years ago)
- Files:
-
- libwired/trunk/libwired/p7/wi-p7-crypto.c (modified) (3 diffs)
- libwired/trunk/libwired/p7/wi-p7-socket.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libwired/trunk/libwired/p7/wi-p7-crypto.c
r4623 r4626 200 200 wi_p7_rsa_t *p7_rsa = instance; 201 201 202 return wi_string_ init_with_format(wi_string_alloc(),WI_STR("<%@ %p>{key = %p, bits = %u}"),202 return wi_string_with_format(WI_STR("<%@ %p>{key = %p, bits = %u}"), 203 203 wi_runtime_class_name(p7_rsa), 204 204 p7_rsa, … … 349 349 } 350 350 351 p7_cipher->key_data = wi_data_init_with_bytes (wi_data_alloc(), key_buffer, key_length);352 p7_cipher->iv_data = wi_data_init_with_bytes (wi_data_alloc(), iv_buffer, iv_length);351 p7_cipher->key_data = wi_data_init_with_bytes_no_copy(wi_data_alloc(), key_buffer, key_length, true); 352 p7_cipher->iv_data = wi_data_init_with_bytes_no_copy(wi_data_alloc(), iv_buffer, iv_length, true); 353 353 354 354 EVP_PKEY_free(private_cipher); 355 wi_free(key_buffer);356 wi_free(iv_buffer);357 355 358 356 return p7_cipher; … … 417 415 wi_p7_cipher_t *p7_cipher = instance; 418 416 419 return wi_string_ init_with_format(wi_string_alloc(),WI_STR("<%@ %p>{bits = %u}"),417 return wi_string_with_format(WI_STR("<%@ %p>{bits = %u}"), 420 418 wi_runtime_class_name(p7_cipher), 421 419 p7_cipher, libwired/trunk/libwired/p7/wi-p7-socket.c
r4623 r4626 49 49 #include <errno.h> 50 50 51 #include <openssl/err.h>52 #include <openssl/evp.h>53 #include <openssl/x509.h>54 55 51 #include <zlib.h> 56 52 … … 182 178 wi_p7_socket_t *p7_socket = instance; 183 179 184 return wi_string_ init_with_format(wi_string_alloc(),WI_STR("<%@ %p>{options = 0x%X, socket = %@}"),180 return wi_string_with_format(WI_STR("<%@ %p>{options = 0x%X, socket = %@}"), 185 181 wi_runtime_class_name(p7_socket), 186 182 p7_socket,
