Lines Matching refs:ep

156 	Encryptions *ep = encryptions;
160 while (ep->type && ep->type != type)
161 ++ep;
162 return(ep->type ? ep : 0);
168 Encryptions *ep = encryptions;
172 while (ep->type && ep->type != type)
173 ++ep;
174 return(ep->type ? ep : 0);
195 Encryptions *ep = encryptions;
208 while (ep->type) {
211 Name, ENCTYPE_NAME(ep->type));
212 i_support_encrypt |= typemask(ep->type);
213 i_support_decrypt |= typemask(ep->type);
214 if ((i_wont_support_decrypt & typemask(ep->type)) == 0)
215 if ((str_send[str_suplen++] = ep->type) == IAC)
217 if (ep->init)
218 (*ep->init)(Server);
219 ++ep;
228 Encryptions *ep = encryptions;
231 while (ep->type) {
232 printf("\t%s (%d)\r\n", ENCTYPE_NAME(ep->type), ep->type);
233 ++ep;
253 Encryptions *ep;
259 } else if ((ep = (Encryptions *)genget(type, (char **)encryptions,
262 } else if (Ambiguous((char **)ep)) {
266 if (decrypt_mode == ep->type)
268 i_wont_support_decrypt |= typemask(ep->type);
272 if (encrypt_mode == ep->type)
274 i_wont_support_encrypt |= typemask(ep->type);
286 Encryptions *ep;
292 } else if ((ep = (Encryptions *)genget(type, (char **)encryptions,
295 } else if (Ambiguous((char **)ep)) {
299 decrypt_mode = ep->type;
300 i_wont_support_decrypt &= ~typemask(ep->type);
304 encrypt_mode = ep->type;
305 i_wont_support_encrypt &= ~typemask(ep->type);
491 Encryptions *ep;
512 ep = findencryption(use_type);
513 if (!ep)
515 type = ep->start ? (*ep->start)(DIR_ENCRYPT, Server) : 0;
517 printf(">>>%s: (*ep->start)() returned %d\r\n",
530 Encryptions *ep;
538 if (!(ep = finddecryption(type))) {
547 if (!ep->is) {
556 ret = (*ep->is)(data, cnt);
558 printf("(*ep->is)(%p, %d) returned %s(%d)\n", data, cnt,
574 Encryptions *ep;
580 if (!(ep = findencryption(type))) {
589 if (!ep->reply) {
598 ret = (*ep->reply)(data, cnt);
600 printf("(*ep->reply)(%p, %d) returned %s(%d)\n",
622 Encryptions *ep;
636 if ((ep = finddecryption(decrypt_mode))) {
637 decrypt_input = ep->input;
658 Encryptions *ep = encryptions;
662 while (ep->type) {
663 if (ep->session)
664 (*ep->session)(key, server);
665 ++ep;
725 Encryptions *ep;
732 if (!(ep = (*kp->getcrypt)(*kp->modep))) {
743 if (ep->keyid)
744 (void)(*ep->keyid)(dir, kp->keyid, &kp->keylen);
753 if (ep->keyid)
754 (void)(*ep->keyid)(dir, kp->keyid, &kp->keylen);
756 if (ep->keyid)
757 ret = (*ep->keyid)(dir, kp->keyid, &kp->keylen);
810 Encryptions *ep;
814 if (!(ep = findencryption(type))) {
824 if (ep->start) {
825 i = (*ep->start)(DIR_ENCRYPT, Server);
853 encrypt_output = ep->output;
950 Encryptions *ep;
953 for (ep = encryptions; ep->type && ep->type != type; ep++)
956 if (ep->printsub)
957 (*ep->printsub)(data, cnt, buf, buflen);