Lines Matching refs:ep

151 	Encryptions *ep = encryptions;
155 while (ep->type && ep->type != type)
156 ++ep;
157 return(ep->type ? ep : 0);
163 Encryptions *ep = encryptions;
167 while (ep->type && ep->type != type)
168 ++ep;
169 return(ep->type ? ep : 0);
190 Encryptions *ep = encryptions;
203 while (ep->type) {
206 Name, ENCTYPE_NAME(ep->type));
207 i_support_encrypt |= typemask(ep->type);
208 i_support_decrypt |= typemask(ep->type);
209 if ((i_wont_support_decrypt & typemask(ep->type)) == 0)
210 if ((str_send[str_suplen++] = ep->type) == IAC)
212 if (ep->init)
213 (*ep->init)(Server);
214 ++ep;
223 Encryptions *ep = encryptions;
226 while (ep->type) {
227 printf("\t%s (%d)\r\n", ENCTYPE_NAME(ep->type), ep->type);
228 ++ep;
248 Encryptions *ep;
254 } else if ((ep = (Encryptions *)genget(type, (char **)encryptions,
257 } else if (Ambiguous((char **)ep)) {
261 if (decrypt_mode == ep->type)
263 i_wont_support_decrypt |= typemask(ep->type);
267 if (encrypt_mode == ep->type)
269 i_wont_support_encrypt |= typemask(ep->type);
281 Encryptions *ep;
287 } else if ((ep = (Encryptions *)genget(type, (char **)encryptions,
290 } else if (Ambiguous((char **)ep)) {
294 decrypt_mode = ep->type;
295 i_wont_support_decrypt &= ~typemask(ep->type);
299 encrypt_mode = ep->type;
300 i_wont_support_encrypt &= ~typemask(ep->type);
486 Encryptions *ep;
507 ep = findencryption(use_type);
508 if (!ep)
510 type = ep->start ? (*ep->start)(DIR_ENCRYPT, Server) : 0;
512 printf(">>>%s: (*ep->start)() returned %d\r\n",
525 Encryptions *ep;
533 if (!(ep = finddecryption(type))) {
542 if (!ep->is) {
551 ret = (*ep->is)(data, cnt);
553 printf("(*ep->is)(%p, %d) returned %s(%d)\n", data, cnt,
569 Encryptions *ep;
575 if (!(ep = findencryption(type))) {
584 if (!ep->reply) {
593 ret = (*ep->reply)(data, cnt);
595 printf("(*ep->reply)(%p, %d) returned %s(%d)\n",
617 Encryptions *ep;
631 if ((ep = finddecryption(decrypt_mode))) {
632 decrypt_input = ep->input;
653 Encryptions *ep = encryptions;
657 while (ep->type) {
658 if (ep->session)
659 (*ep->session)(key, server);
660 ++ep;
720 Encryptions *ep;
724 if (!(ep = (*kp->getcrypt)(*kp->modep))) {
735 if (ep->keyid)
736 (void)(*ep->keyid)(dir, kp->keyid, &kp->keylen);
745 if (ep->keyid)
746 (void)(*ep->keyid)(dir, kp->keyid, &kp->keylen);
748 if (ep->keyid)
749 ret = (*ep->keyid)(dir, kp->keyid, &kp->keylen);
802 Encryptions *ep;
806 if (!(ep = findencryption(type))) {
816 if (ep->start) {
817 i = (*ep->start)(DIR_ENCRYPT, Server);
845 encrypt_output = ep->output;
942 Encryptions *ep;
945 for (ep = encryptions; ep->type && ep->type != type; ep++)
948 if (ep->printsub)
949 (*ep->printsub)(data, cnt, buf, buflen);