Hi
As we know pam has a conversion function which is defined separately.
static int my_conv(int, struct pam_message **msg, struct pam_response **resp, void *){
// username and passwords are supplied in this segment
}
void pam_authenticate(std:;string username, std:

assword){
//calling pam_start(.... );
//calling pam_authenticate(... );
//rest stuff
}
If the structure as defined above is hard bound, I can say that it is not thread safe.
How can i make it thread safe. Do we need to provide external locking or pam has support for this??
I could not find much detail in this respect.
Any thoughts.
conversion function also has appdata_ptr pointer. Can we use it to some advantage. I am totally new in the field?
