Lines Matching refs:ep

141           Encryptions *ep = encryptions;  in findencryption()  local
145 while (ep->type && ep->type != type) in findencryption()
146 ++ep; in findencryption()
147 return(ep->type ? ep : 0); in findencryption()
153 Encryptions *ep = encryptions; in finddecryption() local
157 while (ep->type && ep->type != type) in finddecryption()
158 ++ep; in finddecryption()
159 return(ep->type ? ep : 0); in finddecryption()
178 Encryptions *ep = encryptions; in encrypt_init() local
194 while (ep->type) { in encrypt_init()
197 Name, ENCTYPE_NAME(ep->type)); in encrypt_init()
198 i_support_encrypt |= typemask(ep->type); in encrypt_init()
199 i_support_decrypt |= typemask(ep->type); in encrypt_init()
200 if ((i_wont_support_decrypt & typemask(ep->type)) == 0) in encrypt_init()
201 if ((str_send[str_suplen++] = ep->type) == IAC) in encrypt_init()
203 if (ep->init) in encrypt_init()
204 (*ep->init)(Server); in encrypt_init()
205 ++ep; in encrypt_init()
214 Encryptions *ep = encryptions; in encrypt_list_types() local
217 while (ep->type) { in encrypt_list_types()
218 printf("\t%s (%d)\r\n", ENCTYPE_NAME(ep->type), ep->type); in encrypt_list_types()
219 ++ep; in encrypt_list_types()
239 register Encryptions *ep; in EncryptDisable() local
245 } else if ((ep = (Encryptions *)genget(type, (char **)encryptions, in EncryptDisable()
248 } else if (Ambiguous(ep)) { in EncryptDisable()
252 if (decrypt_mode == ep->type) in EncryptDisable()
254 i_wont_support_decrypt |= typemask(ep->type); in EncryptDisable()
258 if (encrypt_mode == ep->type) in EncryptDisable()
260 i_wont_support_encrypt |= typemask(ep->type); in EncryptDisable()
272 register Encryptions *ep; in EncryptType() local
278 } else if ((ep = (Encryptions *)genget(type, (char **)encryptions, in EncryptType()
281 } else if (Ambiguous(ep)) { in EncryptType()
285 decrypt_mode = ep->type; in EncryptType()
286 i_wont_support_decrypt &= ~typemask(ep->type); in EncryptType()
290 encrypt_mode = ep->type; in EncryptType()
291 i_wont_support_encrypt &= ~typemask(ep->type); in EncryptType()
477 Encryptions *ep; in encrypt_support() local
498 ep = findencryption(use_type); in encrypt_support()
499 if (!ep) in encrypt_support()
501 type = ep->start ? (*ep->start)(DIR_ENCRYPT, Server) : 0; in encrypt_support()
516 Encryptions *ep; in encrypt_is() local
524 if (!(ep = finddecryption(type))) { in encrypt_is()
533 if (!ep->is) { in encrypt_is()
542 ret = (*ep->is)(data, cnt); in encrypt_is()
560 Encryptions *ep; in encrypt_reply() local
566 if (!(ep = findencryption(type))) { in encrypt_reply()
575 if (!ep->reply) { in encrypt_reply()
584 ret = (*ep->reply)(data, cnt); in encrypt_reply()
608 Encryptions *ep; in encrypt_start() local
622 if ((ep = finddecryption(decrypt_mode)) != NULL) { in encrypt_start()
623 decrypt_input = ep->input; in encrypt_start()
644 Encryptions *ep = encryptions; in encrypt_session_key() local
648 while (ep->type) { in encrypt_session_key()
649 if (ep->session) in encrypt_session_key()
650 (*ep->session)(key, server); in encrypt_session_key()
653 encrypt_start_output(ep->type); in encrypt_session_key()
657 ++ep; in encrypt_session_key()
717 Encryptions *ep; in encrypt_keyid() local
721 if (!(ep = (*kp->getcrypt)(*kp->modep))) { in encrypt_keyid()
732 if (ep->keyid) in encrypt_keyid()
733 (void)(*ep->keyid)(dir, kp->keyid, &kp->keylen); in encrypt_keyid()
744 if (ep->keyid) in encrypt_keyid()
745 (void)(*ep->keyid)(dir, kp->keyid, &kp->keylen); in encrypt_keyid()
747 if (ep->keyid) in encrypt_keyid()
748 ret = (*ep->keyid)(dir, kp->keyid, &kp->keylen); in encrypt_keyid()
801 Encryptions *ep; in encrypt_start_output() local
805 if (!(ep = findencryption(type))) { in encrypt_start_output()
815 if (ep->start) { in encrypt_start_output()
816 i = (*ep->start)(DIR_ENCRYPT, Server); in encrypt_start_output()
844 encrypt_output = ep->output; in encrypt_start_output()
949 Encryptions *ep; in encrypt_printsub() local
952 for (ep = encryptions; ep->type && ep->type != type; ep++) in encrypt_printsub()
955 if (ep->printsub) in encrypt_printsub()
956 (*ep->printsub)(data, cnt, buf, buflen); in encrypt_printsub()