< prev index next >

src/java.security.jgss/share/native/libj2gss/NativeFunc.c

Print this page
rev 57430 : 8235903: GCC default -fno-common exposes "multiple definition" link errors
Summary: Fixed C standard tentative definitions with extern keyword
Reviewed-by: alanb
   1 /*
   2  * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #include <stdio.h>
  27 #include <stdlib.h>
  28 #include "NativeFunc.h"



  29 
  30 /* standard GSS method names (ordering is from mapfile) */
  31 static const char RELEASE_NAME[]                = "gss_release_name";
  32 static const char IMPORT_NAME[]                 = "gss_import_name";
  33 static const char COMPARE_NAME[]                = "gss_compare_name";
  34 static const char CANONICALIZE_NAME[]           = "gss_canonicalize_name";
  35 static const char EXPORT_NAME[]                 = "gss_export_name";
  36 static const char DISPLAY_NAME[]                = "gss_display_name";
  37 static const char ACQUIRE_CRED[]                = "gss_acquire_cred";
  38 static const char RELEASE_CRED[]                = "gss_release_cred";
  39 static const char INQUIRE_CRED[]                = "gss_inquire_cred";
  40 static const char IMPORT_SEC_CONTEXT[]          = "gss_import_sec_context";
  41 static const char INIT_SEC_CONTEXT[]            = "gss_init_sec_context";
  42 static const char ACCEPT_SEC_CONTEXT[]          = "gss_accept_sec_context";
  43 static const char INQUIRE_CONTEXT[]             = "gss_inquire_context";
  44 static const char DELETE_SEC_CONTEXT[]          = "gss_delete_sec_context";
  45 static const char CONTEXT_TIME[]                = "gss_context_time";
  46 static const char WRAP_SIZE_LIMIT[]             = "gss_wrap_size_limit";
  47 static const char EXPORT_SEC_CONTEXT[]          = "gss_export_sec_context";
  48 static const char GET_MIC[]                     = "gss_get_mic";


   1 /*
   2  * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #include <stdio.h>
  27 #include <stdlib.h>
  28 #include "NativeFunc.h"
  29 
  30 /* global GSS function table */
  31 GSS_FUNCTION_TABLE_PTR ftab;
  32 
  33 /* standard GSS method names (ordering is from mapfile) */
  34 static const char RELEASE_NAME[]                = "gss_release_name";
  35 static const char IMPORT_NAME[]                 = "gss_import_name";
  36 static const char COMPARE_NAME[]                = "gss_compare_name";
  37 static const char CANONICALIZE_NAME[]           = "gss_canonicalize_name";
  38 static const char EXPORT_NAME[]                 = "gss_export_name";
  39 static const char DISPLAY_NAME[]                = "gss_display_name";
  40 static const char ACQUIRE_CRED[]                = "gss_acquire_cred";
  41 static const char RELEASE_CRED[]                = "gss_release_cred";
  42 static const char INQUIRE_CRED[]                = "gss_inquire_cred";
  43 static const char IMPORT_SEC_CONTEXT[]          = "gss_import_sec_context";
  44 static const char INIT_SEC_CONTEXT[]            = "gss_init_sec_context";
  45 static const char ACCEPT_SEC_CONTEXT[]          = "gss_accept_sec_context";
  46 static const char INQUIRE_CONTEXT[]             = "gss_inquire_context";
  47 static const char DELETE_SEC_CONTEXT[]          = "gss_delete_sec_context";
  48 static const char CONTEXT_TIME[]                = "gss_context_time";
  49 static const char WRAP_SIZE_LIMIT[]             = "gss_wrap_size_limit";
  50 static const char EXPORT_SEC_CONTEXT[]          = "gss_export_sec_context";
  51 static const char GET_MIC[]                     = "gss_get_mic";


< prev index next >