Change-Id: Ia55953111b662500c013787d58052afe5fcf6997
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-void pam_putenv_ex(pam_handle_t* pamh, const char* name, const char* value)
-{
- char result[4096];
- strcpy(result, name);
-
- int offset = strlen(name);
- result[offset] = '=';
-
- strcpy(result + offset + 1, value);
-
- pam_putenv(pamh, result);
-}
-
int read_device(const char* device, char** idkey)
{
int fd;
int read_device(const char* device, char** idkey)
{
int fd;