Is there a length limit for name_value string in pam_putenv(pamh, name_value) ?

Thorsten Kukuk kukuk at suse.de
Wed Sep 23 05:43:43 UTC 2009


On Wed, Sep 23, Andy wrote:

> Hi all,
> 
>             #include <security/pam_appl.h>
> 
>             int pam_putenv (pamh, name_value);
> 
>             pam_handle_t *pamh;
>             const char *name_value;
> 
> In the PAM writers' guide, I saw a description for this method, but
> did not see any length restriction for name_value, does that mean
> there is no length limit for string "name_value" ?

Theoretical there is no length limit, yes. I practice, you have one
least one: available memory.

  Thorsten

-- 
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Markus Rex, HRB 16746 (AG Nuernberg)




More information about the Pam-list mailing list