Changeset 5410
- Timestamp:
- 03/15/08 09:39:10 (4 months ago)
- Files:
-
- libwired/trunk/libwired/misc/wi-crypto.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libwired/trunk/libwired/misc/wi-crypto.c
r5402 r5410 69 69 70 70 X509 *x509; 71 72 wi_string_t *common_name; 71 73 }; 72 74 … … 432 434 BIGNUM *bn = NULL; 433 435 436 x509->common_name = wi_retain(common_name); 437 434 438 req = X509_REQ_new(); 435 439 … … 493 497 if(X509_sign(x509->x509, pkey, EVP_sha1()) == 0) 494 498 goto err; 495 499 496 500 goto end; 497 501 … … 555 559 556 560 X509_free(x509->x509); 561 562 wi_release(x509->common_name); 557 563 } 558 564 … … 562 568 wi_x509_t *x509 = instance; 563 569 564 return wi_string_with_format(WI_STR("<%@ %p>{x509 = %p }"),570 return wi_string_with_format(WI_STR("<%@ %p>{x509 = %p, name = %@}"), 565 571 wi_runtime_class_name(x509), 566 572 x509, 567 x509->x509); 573 x509->x509, 574 x509->common_name); 568 575 } 569 576
