17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  *  Copyright 1990,1994 by the Massachusetts Institute of Technology.
37c478bd9Sstevel@tonic-gate  *  All Rights Reserved.
4*1da57d55SToomas Soome  *
57c478bd9Sstevel@tonic-gate  * Export of this software from the United States of America may
67c478bd9Sstevel@tonic-gate  * require a specific license from the United States Government.
77c478bd9Sstevel@tonic-gate  * It is the responsibility of any person or organization contemplating
87c478bd9Sstevel@tonic-gate  * export to obtain such a license before exporting.
97c478bd9Sstevel@tonic-gate  *
107c478bd9Sstevel@tonic-gate  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
117c478bd9Sstevel@tonic-gate  * distribute this software and its documentation for any purpose and
127c478bd9Sstevel@tonic-gate  * without fee is hereby granted, provided that the above copyright
137c478bd9Sstevel@tonic-gate  * notice appear in all copies and that both that copyright notice and
147c478bd9Sstevel@tonic-gate  * this permission notice appear in supporting documentation, and that
157c478bd9Sstevel@tonic-gate  * the name of M.I.T. not be used in advertising or publicity pertaining
167c478bd9Sstevel@tonic-gate  * to distribution of the software without specific, written prior
17ab9b2e15Sgtb  * permission.  Furthermore if you modify this software you must label
18ab9b2e15Sgtb  * your software as modified software and not distribute it in such a
19ab9b2e15Sgtb  * fashion that it might be confused with the original M.I.T. software.
20ab9b2e15Sgtb  * M.I.T. makes no representations about the suitability of
217c478bd9Sstevel@tonic-gate  * this software for any purpose.  It is provided "as is" without express
227c478bd9Sstevel@tonic-gate  * or implied warranty.
23*1da57d55SToomas Soome  *
247c478bd9Sstevel@tonic-gate  */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate /*
277c478bd9Sstevel@tonic-gate  * stub functions for those without the hash library.
287c478bd9Sstevel@tonic-gate  */
297c478bd9Sstevel@tonic-gate 
30ab9b2e15Sgtb #include "gssapiP_generic.h"
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate #ifdef HAVE_SYS_TYPES_H
337c478bd9Sstevel@tonic-gate #include <sys/types.h>
347c478bd9Sstevel@tonic-gate #endif
357c478bd9Sstevel@tonic-gate #ifdef HAVE_LIMITS_H
367c478bd9Sstevel@tonic-gate #include <limits.h>
377c478bd9Sstevel@tonic-gate #endif
387c478bd9Sstevel@tonic-gate 
397c478bd9Sstevel@tonic-gate /* functions for each type */
407c478bd9Sstevel@tonic-gate 
417c478bd9Sstevel@tonic-gate /* save */
427c478bd9Sstevel@tonic-gate 
g_save_name(vdb,name)437c478bd9Sstevel@tonic-gate int g_save_name(vdb, name)
447c478bd9Sstevel@tonic-gate      void **vdb;
457c478bd9Sstevel@tonic-gate      gss_name_t *name;
467c478bd9Sstevel@tonic-gate {
477c478bd9Sstevel@tonic-gate 	return 1;
487c478bd9Sstevel@tonic-gate }
g_save_cred_id(vdb,cred)497c478bd9Sstevel@tonic-gate int g_save_cred_id(vdb, cred)
507c478bd9Sstevel@tonic-gate      void **vdb;
517c478bd9Sstevel@tonic-gate      gss_cred_id_t *cred;
527c478bd9Sstevel@tonic-gate {
537c478bd9Sstevel@tonic-gate 	return 1;
547c478bd9Sstevel@tonic-gate }
g_save_ctx_id(vdb,ctx)557c478bd9Sstevel@tonic-gate int g_save_ctx_id(vdb, ctx)
567c478bd9Sstevel@tonic-gate      void **vdb;
577c478bd9Sstevel@tonic-gate      gss_ctx_id_t *ctx;
587c478bd9Sstevel@tonic-gate {
597c478bd9Sstevel@tonic-gate 	return 1;
607c478bd9Sstevel@tonic-gate }
g_save_lucidctx_id(vdb,lctx)61ab9b2e15Sgtb int g_save_lucidctx_id(vdb, lctx)
62ab9b2e15Sgtb      void **vdb;
63ab9b2e15Sgtb      void *lctx;
64ab9b2e15Sgtb {
65ab9b2e15Sgtb 	return 1;
66ab9b2e15Sgtb }
677c478bd9Sstevel@tonic-gate 
687c478bd9Sstevel@tonic-gate /* validate */
697c478bd9Sstevel@tonic-gate 
g_validate_name(vdb,name)707c478bd9Sstevel@tonic-gate int g_validate_name(vdb, name)
717c478bd9Sstevel@tonic-gate      void **vdb;
727c478bd9Sstevel@tonic-gate      gss_name_t *name;
737c478bd9Sstevel@tonic-gate {
747c478bd9Sstevel@tonic-gate 	return 1;
757c478bd9Sstevel@tonic-gate }
g_validate_cred_id(vdb,cred)767c478bd9Sstevel@tonic-gate int g_validate_cred_id(vdb, cred)
777c478bd9Sstevel@tonic-gate      void **vdb;
787c478bd9Sstevel@tonic-gate      gss_cred_id_t *cred;
797c478bd9Sstevel@tonic-gate {
807c478bd9Sstevel@tonic-gate 	return 1;
817c478bd9Sstevel@tonic-gate }
g_validate_ctx_id(vdb,ctx)827c478bd9Sstevel@tonic-gate int g_validate_ctx_id(vdb, ctx)
837c478bd9Sstevel@tonic-gate      void **vdb;
847c478bd9Sstevel@tonic-gate      gss_ctx_id_t *ctx;
857c478bd9Sstevel@tonic-gate {
867c478bd9Sstevel@tonic-gate 	return 1;
877c478bd9Sstevel@tonic-gate }
g_validate_lucidctx_id(vdb,lctx)88ab9b2e15Sgtb int g_validate_lucidctx_id(vdb, lctx)
89ab9b2e15Sgtb      void **vdb;
90ab9b2e15Sgtb      void *lctx;
91ab9b2e15Sgtb {
92ab9b2e15Sgtb 	return 1;
93ab9b2e15Sgtb }
947c478bd9Sstevel@tonic-gate 
957c478bd9Sstevel@tonic-gate /* delete */
967c478bd9Sstevel@tonic-gate 
g_delete_name(vdb,name)977c478bd9Sstevel@tonic-gate int g_delete_name(vdb, name)
987c478bd9Sstevel@tonic-gate      void **vdb;
997c478bd9Sstevel@tonic-gate      gss_name_t *name;
1007c478bd9Sstevel@tonic-gate {
1017c478bd9Sstevel@tonic-gate 	return 1;
1027c478bd9Sstevel@tonic-gate }
g_delete_cred_id(vdb,cred)1037c478bd9Sstevel@tonic-gate int g_delete_cred_id(vdb, cred)
1047c478bd9Sstevel@tonic-gate      void **vdb;
1057c478bd9Sstevel@tonic-gate      gss_cred_id_t *cred;
1067c478bd9Sstevel@tonic-gate {
1077c478bd9Sstevel@tonic-gate 	return 1;
1087c478bd9Sstevel@tonic-gate }
g_delete_ctx_id(vdb,ctx)1097c478bd9Sstevel@tonic-gate int g_delete_ctx_id(vdb, ctx)
1107c478bd9Sstevel@tonic-gate      void **vdb;
1117c478bd9Sstevel@tonic-gate      gss_ctx_id_t *ctx;
1127c478bd9Sstevel@tonic-gate {
1137c478bd9Sstevel@tonic-gate 	return 1;
1147c478bd9Sstevel@tonic-gate }
g_delete_lucidctx_id(vdb,lctx)115ab9b2e15Sgtb int g_delete_lucidctx_id(vdb, lctx)
116ab9b2e15Sgtb      void **vdb;
117ab9b2e15Sgtb      void *lctx;
118ab9b2e15Sgtb {
119ab9b2e15Sgtb 	return 1;
120ab9b2e15Sgtb }
1217c478bd9Sstevel@tonic-gate 
122