Lines Matching defs:app_data
112 static void *app_data;
180 buf->size = (*mech->decode)(app_data, buf->data, len, data_prot);
256 bytes = (*mech->encode)(app_data, from, length, data_prot, &buf);
287 len -= (*mech->overhead)(app_data, data_prot, len);
353 len = (*mech->decode)(app_data, buf, len, level);
383 len = (*mech->encode)(app_data, buf, strlen(buf), command_prot, &enc);
439 tmp = realloc(app_data, mech->size);
444 app_data = tmp;
446 if(mech->init && (*mech->init)(app_data) != 0) {
451 (*mech->auth)(app_data);
461 free (app_data);
462 app_data = NULL;
473 (*mech->adat)(app_data, buf, len);
485 new = (*mech->pbsz)(app_data, size);
519 if((*mech->check_prot)(app_data, p)){
534 if(mech->ccc && (*mech->ccc)(app_data) == 0) {
564 len = (*mech->decode)(app_data, buf, len, level);
582 return (*mech->userok)(app_data, userstr);
590 return (*mech->session)(app_data, user);
715 if((*mech->check_prot)(app_data, level)) {
763 if((*mech->check_prot)(app_data, level)) {
815 tmp = realloc(app_data, (*m)->size);
820 app_data = tmp;
822 if((*m)->init && (*(*m)->init)(app_data) != 0) {
842 ret = (*(*m)->auth)(app_data, host);
871 (*mech->end)(app_data);
872 if (app_data != NULL) {
873 memset(app_data, 0, mech->size);
874 free(app_data);
875 app_data = NULL;