~mrooney/ecryptfs/nautilus-integration

« back to all changes in this revision

Viewing changes to src/libecryptfs-swig/libecryptfs.i

  • Committer: mhalcrow@us.ibm.com
  • Date: 2007-11-06 22:56:01 UTC
  • Revision ID: git-v1:f8357de9d554b274497b5cce9db4347254b7e7eb
Initial import of eCryptfs filesystem userspace utilities (mount helper, daemon component,
etc.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%module libecryptfs
2
 
%{
3
 
#include "../include/ecryptfs.h"
4
 
extern binary_data ecryptfs_passphrase_blob(char *salt, char *passphrase);
5
 
extern binary_data ecryptfs_passphrase_sig_from_blob(char *blob);
6
 
extern int ecryptfs_add_blob_to_keyring(char *blob, char *sig);
7
 
%}
8
 
 
9
 
#include "../include/ecryptfs.h"
10
 
 
11
 
%typemap(out) binary_data {
12
 
    $result = PyString_FromStringAndSize($1.data,$1.size);
13
 
}
14
 
 
15
 
extern binary_data ecryptfs_passphrase_blob(char *salt, char *passphrase);
16
 
extern binary_data ecryptfs_passphrase_sig_from_blob(char *blob);
17
 
extern int ecryptfs_add_blob_to_keyring(char *blob, char *sig);