Lines Matching full:ep
143 Encryptions *ep = encryptions; in findencryption() local
147 while (ep->type && ep->type != type) in findencryption()
148 ++ep; in findencryption()
149 return(ep->type ? ep : 0); in findencryption()
155 Encryptions *ep = encryptions; in finddecryption() local
159 while (ep->type && ep->type != type) in finddecryption()
160 ++ep; in finddecryption()
161 return(ep->type ? ep : 0); in finddecryption()
180 Encryptions *ep = encryptions; in encrypt_init() local
196 while (ep->type) { in encrypt_init()
199 Name, ENCTYPE_NAME(ep->type)); in encrypt_init()
200 i_support_encrypt |= typemask(ep->type); in encrypt_init()
201 i_support_decrypt |= typemask(ep->type); in encrypt_init()
202 if ((i_wont_support_decrypt & typemask(ep->type)) == 0) in encrypt_init()
203 if ((str_send[str_suplen++] = ep->type) == IAC) in encrypt_init()
205 if (ep->init) in encrypt_init()
206 (*ep->init)(Server); in encrypt_init()
207 ++ep; in encrypt_init()
216 Encryptions *ep = encryptions; in encrypt_list_types() local
219 while (ep->type) { in encrypt_list_types()
220 printf("\t%s (%d)\r\n", ENCTYPE_NAME(ep->type), ep->type); in encrypt_list_types()
221 ++ep; in encrypt_list_types()
241 Encryptions *ep; in EncryptDisable() local
247 } else if ((ep = (Encryptions *)genget(type, (char**)encryptions, in EncryptDisable()
250 } else if (Ambiguous(ep)) { in EncryptDisable()
254 if (decrypt_mode == ep->type) in EncryptDisable()
256 i_wont_support_decrypt |= typemask(ep->type); in EncryptDisable()
260 if (encrypt_mode == ep->type) in EncryptDisable()
262 i_wont_support_encrypt |= typemask(ep->type); in EncryptDisable()
274 Encryptions *ep; in EncryptType() local
280 } else if ((ep = (Encryptions *)genget(type, (char**)encryptions, in EncryptType()
283 } else if (Ambiguous(ep)) { in EncryptType()
287 decrypt_mode = ep->type; in EncryptType()
288 i_wont_support_decrypt &= ~typemask(ep->type); in EncryptType()
292 encrypt_mode = ep->type; in EncryptType()
293 i_wont_support_encrypt &= ~typemask(ep->type); in EncryptType()
513 Encryptions *ep; in encrypt_support() local
534 ep = findencryption(use_type); in encrypt_support()
535 if (!ep) in encrypt_support()
537 type = ep->start ? (*ep->start)(DIR_ENCRYPT, Server) : 0; in encrypt_support()
539 printf(">>>%s: (*ep->start)() returned %d\r\n", in encrypt_support()
552 Encryptions *ep; in encrypt_is() local
560 if (!(ep = finddecryption(type))) { in encrypt_is()
569 if (!ep->is) { in encrypt_is()
578 ret = (*ep->is)(data, cnt); in encrypt_is()
580 printf("(*ep->is)(%p, %d) returned %s(%d)\n", data, cnt, in encrypt_is()
596 Encryptions *ep; in encrypt_reply() local
602 if (!(ep = findencryption(type))) { in encrypt_reply()
611 if (!ep->reply) { in encrypt_reply()
620 ret = (*ep->reply)(data, cnt); in encrypt_reply()
622 printf("(*ep->reply)(%p, %d) returned %s(%d)\n", in encrypt_reply()
644 Encryptions *ep; in encrypt_start() local
658 if ((ep = finddecryption(decrypt_mode))) { in encrypt_start()
659 decrypt_input = ep->input; in encrypt_start()
680 Encryptions *ep = encryptions; in encrypt_session_key() local
684 while (ep->type) { in encrypt_session_key()
685 if (ep->session) in encrypt_session_key()
686 (*ep->session)(key, server); in encrypt_session_key()
687 ++ep; in encrypt_session_key()
735 Encryptions *ep; in encrypt_keyid() local
742 if (!(ep = (*kp->getcrypt)(*kp->modep))) { in encrypt_keyid()
753 if (ep->keyid) in encrypt_keyid()
754 (void)(*ep->keyid)(dir, kp->keyid, &kp->keylen); in encrypt_keyid()
762 if (ep->keyid) in encrypt_keyid()
763 (void)(*ep->keyid)(dir, kp->keyid, &kp->keylen); in encrypt_keyid()
765 if (ep->keyid) in encrypt_keyid()
766 ret = (*ep->keyid)(dir, kp->keyid, &kp->keylen); in encrypt_keyid()
829 Encryptions *ep; in encrypt_start_output() local
833 if (!(ep = findencryption(type))) { in encrypt_start_output()
843 if (ep->start) { in encrypt_start_output()
844 i = (*ep->start)(DIR_ENCRYPT, Server); in encrypt_start_output()
872 encrypt_output = ep->output; in encrypt_start_output()
995 Encryptions *ep; in encrypt_printsub() local
998 for (ep = encryptions; ep->type && ep->type != type; ep++) in encrypt_printsub()
1001 if (ep->printsub) in encrypt_printsub()
1002 (*ep->printsub)(data, cnt, buf, buflen); in encrypt_printsub()