Ticket #40765: patch-src-import.c.diff
File patch-src-import.c.diff, 1.9 KB (added by fgp (Florian G. Pflug), 11 years ago) |
---|
-
src/import.c
old new gint import_pkcs12 (guchar *file_contents, gsize file_contents_size) 695 695 696 696 // After having all the parts unencrypted, we import all certificates first. 697 697 for (i=0; i<n_bags; i++) { 698 gnutls_pkcs12_bag * pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i);698 gnutls_pkcs12_bag_t * pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i); 699 699 guint num_elements_in_bag = gnutls_pkcs12_bag_get_count (*pkcs12_bag); 700 700 701 701 for (i=0; i < num_elements_in_bag; i++) { … … gint import_pkcs12 (guchar *file_contents, gsize file_contents_size) 722 722 723 723 // Then, we import all PKCS8 private keys. 724 724 for (i=0; i<n_bags; i++) { 725 gnutls_pkcs12_bag 725 gnutls_pkcs12_bag_t* pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i); 726 726 guint num_elements_in_bag = gnutls_pkcs12_bag_get_count (*pkcs12_bag); 727 727 728 728 for (i=0; i < num_elements_in_bag; i++) { … … gint import_pkcs12 (guchar *file_contents, gsize file_contents_size) 796 796 // Then we import the CRLs 797 797 798 798 for (i=0; i<n_bags; i++) { 799 gnutls_pkcs12_bag * pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i);799 gnutls_pkcs12_bag_t * pkcs12_bag = g_array_index (pkcs_bag_array, gnutls_pkcs12_bag_t *, i); 800 800 guint num_elements_in_bag = gnutls_pkcs12_bag_get_count (*pkcs12_bag); 801 801 802 802 for (i=0; i < num_elements_in_bag; i++) {