Home | History | Annotate | Download | only in net

Lines Matching refs:hisauth

1096 hisauth, 0, sizeof sp->hisauth);
1145 if (sp->hisauth.name) free(sp->hisauth.name, M_DEVBUF);
1146 if (sp->hisauth.secret) free(sp->hisauth.secret, M_DEVBUF);
2526 if (sp->hisauth.proto != PPP_NOPROTO)
2977 (sp->hisauth.flags & SPPP_AUTHFLAG_NOCALLOUT) != 0) {
3290 authproto = sp->hisauth.proto;
4752 if (sp->hisauth.name == NULL || sp->hisauth.secret == NULL) {
4786 if (sp->hisauth.name != NULL &&
4787 (name_len != sp->hisauth.name_len
4788 || memcmp(name, sp->hisauth.name, name_len) != 0)) {
4793 sppp_print_string(sp->hisauth.name,
4794 sp->hisauth.name_len);
4820 MD5Update(&ctx, sp->hisauth.secret, sp->hisauth.secret_len);
4916 (sp->hisauth.flags & SPPP_AUTHFLAG_NORECHALLENGE) == 0) {
5058 if (sp->hisauth.name == NULL || sp->hisauth.secret == NULL) {
5097 if (name_len == sp->hisauth.name_len &&
5098 memcmp(name, sp->hisauth.name, name_len) == 0 &&
5099 secret_len == sp->hisauth.secret_len &&
5100 memcmp(secret, sp->hisauth.secret, secret_len) == 0) {
5362 if (sp->hisauth.proto == cp->proto &&
5389 if ((sp->hisauth.flags & SPPP_AUTHFLAG_NORECHALLENGE) == 0) {
5876 cfg->hisauthflags = sp->hisauth.flags;
5878 cfg->hisauth = sppp_proto2authproto(sp->hisauth.proto);
5901 if (sp->hisauth.name != NULL)
5902 cfg->hisname_length = sp->hisauth.name_len + 1;
5904 if (sp->hisauth.name == NULL) {
5907 len = sp->hisauth.name_len + 1;
5913 error = copyout(sp->hisauth.name, cfg->hisname, len);
5938 if (sp->hisauth.name) {
5939 free(sp->hisauth.name, M_DEVBUF);
5940 sp->hisauth.name = NULL;
5942 if (sp->hisauth.secret) {
5943 free(sp->hisauth.secret, M_DEVBUF);
5944 sp->hisauth.secret = NULL;
5952 sp->hisauth.name = malloc(cfg->hisname_length, M_DEVBUF, M_WAITOK);
5953 error = copyin(cfg->hisname, sp->hisauth.name, cfg->hisname_length);
5955 free(sp->hisauth.name, M_DEVBUF);
5956 sp->hisauth.name = NULL;
5960 sp->hisauth.name_len = cfg->hisname_length - 1;
5961 sp->hisauth.name[sp->hisauth.name_len] = 0;
5968 sp->hisauth.secret = malloc(cfg->hissecret_length,
5970 error = copyin(cfg->hissecret, sp->hisauth.secret,
5973 free(sp->hisauth.secret, M_DEVBUF);
5974 sp->hisauth.secret = NULL;
5978 sp->hisauth.secret_len = cfg->hissecret_length - 1;
5979 sp->hisauth.secret[sp->hisauth.secret_len] = 0;
6019 sp->hisauth.flags = cfg->hisauthflags;
6020 if (cfg->hisauth != SPPP_AUTHPROTO_NOCHG) {
6021 sp->hisauth.proto = sppp_authproto2proto(cfg->hisauth);
6024 if (sp->hisauth.proto != PPP_NOPROTO)