~ubuntu-branches/ubuntu/natty/gnome-keyring/natty

« back to all changes in this revision

Viewing changes to pkcs11/gck/tests/dump-data-file.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-02-16 19:00:06 UTC
  • mfrom: (1.1.58 upstream)
  • Revision ID: james.westby@ubuntu.com-20100216190006-cqpnic4zxlkmmi0o
Tags: 2.29.90git20100218-0ubuntu1
Updated to a git snapshot version

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
        const gchar *password;
61
61
        GckDataResult res;
62
62
        GckDataFile *file;
63
 
        GckLogin *login;
 
63
        GckSecret *login;
64
64
        int fd;
65
65
        
66
66
        g_type_init ();
74
74
                failure ("dump-data-file: couldn't open file: %s: %s", argv[1], g_strerror (errno));
75
75
        
76
76
        password = getpass ("Password: ");
77
 
        login = gck_login_new ((guchar*)password, strlen (password));
 
77
        login = gck_secret_new ((guchar*)password, strlen (password));
78
78
        
79
79
        file = gck_data_file_new ();
80
80
        res = gck_data_file_read_fd (file, fd, login);