]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Desupport krb5_auth_con_setivector
authorGreg Hudson <ghudson@mit.edu>
Tue, 5 Feb 2013 17:43:53 +0000 (12:43 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 7 Feb 2013 17:54:55 +0000 (12:54 -0500)
ticket: 7565 (new)

src/lib/krb5/krb/auth_con.c

index 54a579fa99d2453c66addd9edbe9929f52cac57c..986d4396d8cea1dffaadf308353d75c5178e51f1 100644 (file)
@@ -334,8 +334,12 @@ krb5_auth_con_initivector(krb5_context context, krb5_auth_context auth_context)
 krb5_error_code
 krb5_auth_con_setivector(krb5_context context, krb5_auth_context auth_context, krb5_pointer ivector)
 {
-    auth_context->i_vector = ivector;
-    return 0;
+    /*
+     * This function was part of the pre-1.2.2 API.  Because it aliased the
+     * caller's memory into auth_context, and doesn't provide the size of the
+     * cipher state, it's inconvenient to support now, so return an error.
+     */
+    return EINVAL;
 }
 
 krb5_error_code