#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}
_ACRTIMP char *__cdecl strchr(const char *, int)
static const ULONG lookup[16]
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 CDECL fclose(FILE *file)
int WINAPIV fprintf(FILE *file, const char *format,...)
char *CDECL fgets(char *s, int size, FILE *file)
FILE *CDECL fopen(const char *path, const char *mode)
_ACRTIMP size_t __cdecl strlen(const char *)
_ACRTIMP int __cdecl strcmp(const char *, const char *)
GLenum GLuint GLenum GLsizei const GLchar * buf
Referenced by __getpublickey_real().
◆ getpublickey()
| int getpublickey |
( |
char * |
netname, |
|
|
char * |
publickey |
|
) |
| const |
◆ __getpublickey_LOCAL
| int(* __getpublickey_LOCAL) ()=0 |
( |
| ) |
|