#include <wintirpc.h>
#include <stdio.h>
#include <rpc/rpc.h>
#include <rpc/key_prot.h>
#include <rpcsvc/yp_prot.h>
#include <rpcsvc/ypclnt.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
◆ PKFILE
#define PKFILE "/etc/publickey" |
◆ __getpublickey_real()
int __getpublickey_real |
( |
char * |
netname, |
|
|
char * |
publickey |
|
) |
| |
Definition at line 62 of file getpublickey.c.
65{
66 char lookup[3 * HEXKEYBYTES];
68
69 if (publickey ==
NULL)
70 return (0);
72 return (0);
75 return (0);
76 }
79 publickey[HEXKEYBYTES] = '\0';
80 return (1);
81}
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
char * strchr(const char *String, int ch)
int getpublicandprivatekey(char *key, char *ret)
Referenced by getpublickey().
◆ getpublicandprivatekey()
Definition at line 89 of file getpublickey.c.
92{
96 char *mkey;
97 char *mval;
98
101 return (0);
102 for (;;) {
106 return (0);
107 }
109 continue;
110 else if (
res[0] ==
'+') {
111#ifdef YP
112 char *PKMAP = "publickey.byname";
117
120 continue;
121 }
125#ifdef DEBUG
127#endif
128 continue;
129 }
134 return (2);
135#else
136#ifdef DEBUG
138"Bad record in %s '+' -- NIS not supported in this library copy\n",
PKFILE);
139#endif
140 continue;
141#endif
142 } else {
143 mkey = strsep(&
res,
"\t ");
147 continue;
148 }
149 do {
150 mval = strsep(&
res,
" \t#\n");
151 }
while (mval !=
NULL && !*mval);
154 "Bad record in %s val problem - %s",
PKFILE,
buf);
155 continue;
156 }
160 return (1);
161 }
162 }
163 }
164}
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
GLenum GLuint GLenum GLsizei const GLchar * buf
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
Referenced by __getpublickey_real().
◆ getpublickey()
int getpublickey |
( |
char * |
netname, |
|
|
char * |
publickey |
|
) |
| const |
◆ __getpublickey_LOCAL
int(* __getpublickey_LOCAL) ()=0 |
( |
| ) |
|