Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /usr/share/doc/pam-devel-1.1.8/html/ |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>1.2. Synopsis</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="Linux-PAM_ADG.html" title="The Linux-PAM Application Developers' Guide"><link rel="up" href="adg-introduction.html" title="Chapter 1. Introduction"><link rel="prev" href="adg-introduction-description.html" title="1.1. Description"><link rel="next" href="adg-overview.html" title="Chapter 2. Overview"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">1.2. Synopsis</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="adg-introduction-description.html">Prev</a> </td><th width="60%" align="center">Chapter 1. Introduction</th><td width="20%" align="right"> <a accesskey="n" href="adg-overview.html">Next</a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="adg-introduction-synopsis"></a>1.2. Synopsis</h2></div></div></div><p> For general applications that wish to use the services provided by <span class="emphasis"><em>Linux-PAM</em></span> the following is a summary of the relevant linking information: </p><pre class="programlisting"> #include <security/pam_appl.h> cc -o application .... -lpam </pre><p> </p><p> In addition to <span class="command"><strong>libpam</strong></span>, there is a library of miscellaneous functions that make the job of writing <span class="emphasis"><em>PAM-aware</em></span> applications easier (this library is not covered in the DCE-RFC for PAM and is specific to the Linux-PAM distribution): </p><pre class="programlisting"> #include <security/pam_appl.h> #include <security/pam_misc.h> cc -o application .... -lpam -lpam_misc </pre><p> </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="adg-introduction-description.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="adg-introduction.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="adg-overview.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">1.1. Description </td><td width="20%" align="center"><a accesskey="h" href="Linux-PAM_ADG.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 2. Overview</td></tr></table></div></body></html>