~noskcaj/ubuntu/vivid/gnome-keyring/3.15.90

« back to all changes in this revision

Viewing changes to daemon/control/tests/test-control-unlock.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-14 22:13:02 UTC
  • mfrom: (1.3.1)
  • mto: (80.2.8 experimental) (1.1.77)
  • mto: This revision was merged to the branch mainline in revision 148.
  • Revision ID: package-import@ubuntu.com-20120514221302-0l3gjmqpe6xopond
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#include "control/gkd-control.h"
3
 
#include "testing/testing.h"
4
 
 
5
 
#include <pwd.h>
6
 
#include <unistd.h>
7
 
 
8
 
static int
9
 
run (void)
10
 
{
11
 
        const char *password;
12
 
        const char *directory;
13
 
 
14
 
        password = getpass ("Unlock: ");
15
 
        g_return_val_if_fail (password, 1);
16
 
 
17
 
        directory = g_getenv ("GNOME_KEYRING_CONTROL");
18
 
        g_return_val_if_fail (directory, 1);
19
 
 
20
 
        gkd_control_unlock (directory, password);
21
 
        return 0;
22
 
}
23
 
 
24
 
#include "testing/testing.c"