http://sovereign.i2p/pam-resource.html
< < std::endl;
// Close PAM session
pam_close_session(pamh, 0);
// End PAM session
pam_end(pamh, result);
return 0;
} If the source file is named example-app.cpp, compile and link with: g++ example-app.cpp -lpam -lpam_misc -o example-app Such programs, when invoked, would need to authenticate via digital signature (and attain authorization via Proof-of-Payment if required) via the Sovereign PAM Resource prior to execution.