Print this page
More linty cleanup

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libpkg/common/security.c
          +++ new/usr/src/lib/libpkg/common/security.c
↓ open down ↓ 102 lines elided ↑ open up ↑
 103  103  
 104  104          if ((ca_store = X509_STORE_new()) == NULL) {
 105  105                  pkgerr_add(err, PKGERR_NOMEM,
 106  106                      gettext(ERR_MEM));
 107  107                  ret = 1;
 108  108                  goto cleanup;
 109  109          }
 110  110  
 111  111          /* add all ca certs into the store */
 112  112          for (i = 0; i < sk_X509_num(cas); i++) {
 113      -                /* LINTED pointer cast may result in improper alignment */
 114  113                  ca_cert = sk_X509_value(cas, i);
 115  114                  if (X509_STORE_add_cert(ca_store, ca_cert) == 0) {
 116  115                          pkgerr_add(err, PKGERR_NOMEM, gettext(ERR_MEM));
 117  116                          ret = 1;
 118  117                          goto cleanup;
 119  118                  }
 120  119          }
 121  120  
 122  121          /* initialize context object used during the chain resolution */
 123  122  
↓ open down ↓ 159 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX