Print this page
3882 remove xmod & friends

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/gss_mechs/mech_krb5/crypto/des/string2key.c
          +++ new/usr/src/lib/gss_mechs/mech_krb5/crypto/des/string2key.c
↓ open down ↓ 46 lines elided ↑ open up ↑
  47   47          returns: errors
  48   48   */
  49   49  
  50   50  krb5_error_code
  51   51  mit_des_string_to_key_int (krb5_context context,
  52   52          krb5_keyblock *keyblock,
  53   53          const krb5_data *data,
  54   54          const krb5_data *salt)
  55   55  {
  56   56      krb5_error_code retval = KRB5_PROG_ETYPE_NOSUPP;
  57      -/* EXPORT DELETE START */
  58   57      register char *str, *copystr;
  59   58      register krb5_octet *key;
  60   59      register unsigned temp;
  61   60      register long i;
  62   61      register int j;
  63   62      register long length;
  64   63      unsigned char *k_p;
  65   64      int forward;
  66   65      register char *p_char;
  67   66      char k_char[64];
↓ open down ↓ 105 lines elided ↑ open up ↑
 173  172       * in place we cannot use the PKCS#11 key object handle created earlier.
 174  173       * Destroy the existing object handle associated with the key,
 175  174       * a correct handle will get created when the key is actually
 176  175       * used for the first time.
 177  176       */
 178  177       if (keyblock->hKey != CK_INVALID_HANDLE) {
 179  178          (void)C_DestroyObject(krb_ctx_hSession(context), keyblock->hKey);
 180  179          keyblock->hKey = CK_INVALID_HANDLE;
 181  180       }
 182  181  
 183      -/* EXPORT DELETE END */
 184  182      return retval;
 185  183  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX