< prev index next >

src/java.security.jgss/macosx/native/libosxkrb5/nativeccache.c

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 26,35 **** --- 26,37 ---- #import "sun_security_krb5_Credentials.h" #import <Kerberos/Kerberos.h> #import <string.h> #import <time.h> + #include "jni_util.h" + /* * Based largely on klist.c, * * Created by Scott Kovatch on 8/12/04. *
*** 90,100 **** } /* * Class: sun_security_krb5_KrbCreds * Method: JNI_OnLoad */ ! JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *jvm, void *reserved) { JNIEnv *env; if ((*jvm)->GetEnv(jvm, (void **)&env, JNI_VERSION_1_4)) { return JNI_EVERSION; /* JNI version not supported */ --- 92,102 ---- } /* * Class: sun_security_krb5_KrbCreds * Method: JNI_OnLoad */ ! JNIEXPORT jint JNICALL DEF_JNI_OnLoad(JavaVM *jvm, void *reserved) { JNIEnv *env; if ((*jvm)->GetEnv(jvm, (void **)&env, JNI_VERSION_1_4)) { return JNI_EVERSION; /* JNI version not supported */
*** 189,199 **** /* * Class: sun_security_jgss_KrbCreds * Method: JNI_OnUnload */ ! JNIEXPORT void JNICALL JNI_OnUnload(JavaVM *jvm, void *reserved) { JNIEnv *env; if ((*jvm)->GetEnv(jvm, (void **)&env, JNI_VERSION_1_2)) { return; /* Nothing else we can do */ --- 191,201 ---- /* * Class: sun_security_jgss_KrbCreds * Method: JNI_OnUnload */ ! JNIEXPORT void JNICALL DEF_JNI_OnUnload(JavaVM *jvm, void *reserved) { JNIEnv *env; if ((*jvm)->GetEnv(jvm, (void **)&env, JNI_VERSION_1_2)) { return; /* Nothing else we can do */
< prev index next >