need to convert the subkeys as well
authorJohn Kohl <jtkohl@mit.edu>
Wed, 6 Feb 1991 11:14:04 +0000 (11:14 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 6 Feb 1991 11:14:04 +0000 (11:14 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1651 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/auth2kauth.c
src/lib/krb5/asn.1/kauth2auth.c

index 40a3421622ffa05700be9d6594e7fdca3bfda697..b508f5f1cd2d30b6f65faf16c59e8a71845bbc7c 100644 (file)
@@ -62,6 +62,13 @@ register int *error;
        krb5_free_authenticator(retval);
        return(0);
     }
+    if (val->subkey) {
+       retval->subkey = KRB5_EncryptionKey2krb5_keyblock(val->subkey, error);
+       if (!retval->subkey) {
+           krb5_free_authenticator(retval);
+           return(0);
+       }
+    }
     if (val->optionals & opt_KRB5_Authenticator_seq__number) {
        retval->seq_number = val->seq__number;
     }
index 56e1ba608197edb911ea35eea89d72318a2ee75d..13da1a22b36cce6f1ebe4f1e9ccaf8101f0b4c7a 100644 (file)
@@ -64,6 +64,11 @@ register int *error;
     if (!retval->ctime) {
        goto errout;
     }
+    if (val->subkey) {
+       retval->subkey = krb5_keyblock2KRB5_EncryptionKey(val->subkey, error);
+       if (!retval->subkey)
+           goto errout;
+    }
     if (val->seq_number) {
        retval->seq__number = val->seq_number;
        retval->optionals |= opt_KRB5_Authenticator_seq__number;