pam_agl: remove unused function
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 24 Oct 2017 12:37:31 +0000 (14:37 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 24 Oct 2017 12:37:31 +0000 (14:37 +0200)
Change-Id: Ia55953111b662500c013787d58052afe5fcf6997
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
pam_agl/pam_agl.c

index 0eea11a..c85979d 100644 (file)
@@ -60,19 +60,6 @@ char* get_file_content(const char* path)
        return buffer;
 }
 
        return buffer;
 }
 
-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;