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