r23792: convert Samba4 to GPLv3
[kai/samba-autobuild/.git] / source4 / torture / auth / pac.c
index d23a9c1b5a696c69fe93168381103b429d291c19..30bb53587d6117b5d5006a2a59a4e2e56b7ec70b 100644 (file)
@@ -7,7 +7,7 @@
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
@@ -17,8 +17,7 @@
 
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "includes.h"
@@ -56,7 +55,9 @@ static bool torture_pac_self_check(struct torture_context *tctx)
 
        TALLOC_CTX *mem_ctx = tctx;
 
-       torture_assert(tctx, 0 == smb_krb5_init_context(mem_ctx, &smb_krb5_context), 
+       torture_assert(tctx, 0 == smb_krb5_init_context(mem_ctx, 
+                                                       NULL,
+                                                       &smb_krb5_context), 
                       "smb_krb5_init_context");
 
        generate_random_buffer(server_bytes, 16);
@@ -282,7 +283,8 @@ static bool torture_pac_saved_check(struct torture_context *tctx)
        time_t authtime;
        TALLOC_CTX *mem_ctx = tctx;
 
-       torture_assert(tctx, 0 == smb_krb5_init_context(mem_ctx, &smb_krb5_context),
+       torture_assert(tctx, 0 == smb_krb5_init_context(mem_ctx, NULL,
+                                                       &smb_krb5_context),
                       "smb_krb5_init_context");
 
        pac_kdc_key = torture_setting_string(tctx, "pac_kdc_key",