Lines Matching refs:ep

139 	Encryptions *ep = encryptions;  in findencryption()  local
143 for (; (ep->type != 0) && (ep->type != type); ep++); in findencryption()
144 return (ep->type ? ep : NULL); in findencryption()
150 Encryptions *ep = encryptions; in finddecryption() local
154 while (ep->type && ep->type != type) in finddecryption()
155 ++ep; in finddecryption()
156 return (ep->type ? ep : NULL); in finddecryption()
177 Encryptions *ep = encryptions; in encrypt_init() local
192 while (ep->type) { in encrypt_init()
196 Name, ENCTYPE_NAME(ep->type)); in encrypt_init()
197 i_support_encrypt |= typemask(ep->type); in encrypt_init()
198 i_support_decrypt |= typemask(ep->type); in encrypt_init()
199 if ((i_wont_support_decrypt & typemask(ep->type)) == 0) in encrypt_init()
200 if ((str_send[str_suplen++] = ep->type) == IAC) in encrypt_init()
202 if (ep->init) in encrypt_init()
203 (*ep->init)(); in encrypt_init()
204 ++ep; in encrypt_init()
213 Encryptions *ep = encryptions; in encrypt_list_types() local
216 while (ep->type) { in encrypt_list_types()
218 ENCTYPE_NAME(ep->type), ep->type); in encrypt_list_types()
219 ++ep; in encrypt_list_types()
242 register Encryptions *ep; in EncryptDisable() local
249 } else if ((ep = (Encryptions *)genget(type, (char **)encryptions, in EncryptDisable()
252 } else if (Ambiguous(ep)) { in EncryptDisable()
256 if (decrypt_mode == ep->type) in EncryptDisable()
258 i_wont_support_decrypt |= typemask(ep->type); in EncryptDisable()
262 if (encrypt_mode == ep->type) in EncryptDisable()
264 i_wont_support_encrypt |= typemask(ep->type); in EncryptDisable()
277 register Encryptions *ep; in EncryptType() local
284 } else if ((ep = (Encryptions *)genget(type, (char **)encryptions, in EncryptType()
287 } else if (Ambiguous(ep)) { in EncryptType()
291 decrypt_mode = ep->type; in EncryptType()
292 i_wont_support_decrypt &= ~typemask(ep->type); in EncryptType()
296 encrypt_mode = ep->type; in EncryptType()
297 i_wont_support_encrypt &= ~typemask(ep->type); in EncryptType()
496 Encryptions *ep; in encrypt_support() local
517 ep = findencryption(use_type); in encrypt_support()
518 if (!ep) in encrypt_support()
520 type = ep->start ? (*ep->start)(TELNET_DIR_ENCRYPT) : 0; in encrypt_support()
536 Encryptions *ep; in encrypt_is() local
544 if (!(ep = finddecryption(type))) { in encrypt_is()
553 if (!ep->is) { in encrypt_is()
562 ret = (*ep->is)(data, cnt); in encrypt_is()
581 Encryptions *ep; in encrypt_reply() local
587 if (!(ep = findencryption(type))) { in encrypt_reply()
596 if (!ep->reply) { in encrypt_reply()
605 ret = (*ep->reply)(data, cnt); in encrypt_reply()
631 Encryptions *ep; in encrypt_start() local
646 if (ep = finddecryption(decrypt_mode)) { in encrypt_start()
647 decrypt_input = ep->input; in encrypt_start()
669 Encryptions *ep = encryptions; in encrypt_session_key() local
671 while (ep->type) { in encrypt_session_key()
672 if (ep->session) in encrypt_session_key()
673 (*ep->session)(key); in encrypt_session_key()
676 encrypt_start_output(ep->type); in encrypt_session_key()
680 ++ep; in encrypt_session_key()
740 Encryptions *ep; in encrypt_keyid() local
744 if (!(ep = (*kp->getcrypt)(*kp->modep))) { in encrypt_keyid()
755 if (ep->keyid) in encrypt_keyid()
756 (void) (*ep->keyid)(dir, kp->keyid, &kp->keylen); in encrypt_keyid()
765 if (ep->keyid) in encrypt_keyid()
766 (void) (*ep->keyid)(dir, kp->keyid, &kp->keylen); in encrypt_keyid()
768 if (ep->keyid) in encrypt_keyid()
769 ret = (*ep->keyid)(dir, kp->keyid, &kp->keylen); in encrypt_keyid()
818 Encryptions *ep; in encrypt_start_output() local
822 if (!(ep = findencryption(type))) { in encrypt_start_output()
831 if (ep->start) { in encrypt_start_output()
832 i = (*ep->start)(TELNET_DIR_ENCRYPT); in encrypt_start_output()
861 encrypt_output = ep->output; in encrypt_start_output()
959 Encryptions *ep; in encrypt_printsub() local
962 for (ep = encryptions; ep->type && ep->type != type; ep++) in encrypt_printsub()
965 if (ep->printsub) in encrypt_printsub()
966 (*ep->printsub)(data, cnt, buf, buflen); in encrypt_printsub()