~ecryptfs/ecryptfs/trunk

« back to all changes in this revision

Viewing changes to src/utils/io.h

  • 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
/**
 
2
 * Copyright (C) 2006 International Business Machines
 
3
 * Author(s): Michael C Thompson <mcthomps@us.ibm.com>
 
4
 *
 
5
 * I/O functions for mount helper header file
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU General Public License as
 
9
 * published by the Free Software Foundation; either version 2 of the
 
10
 * License, or (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful, but
 
13
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
20
 * 02111-1307, USA.
 
21
 */
 
22
 
 
23
#include "ecryptfs.h"
 
24
 
 
25
int main_menu(uint32_t version);
 
26
int manager_menu(void);
 
27
int read_passphrase_salt(char *pass, char *salt);
 
28
int get_string_stdin(char **val, char *prompt, int echo);
 
29
void ecryptfs_get_crypto_modules(struct ecryptfs_cipher_elem *cipher_list_head,
 
30
                                 struct cipher_str_name_map_elem* cipher_opt,
 
31
                                 int *num_cipher_options, int max_cipher_opts,
 
32
                                 int print);
 
33
int ecryptfs_verify_cipher(struct ecryptfs_cipher_elem *cipher_list_head,
 
34
                           char *cipher_name, int key_bytes);
 
35
int default_cipher(char **default_cipher, int *keysize,
 
36
                   struct ecryptfs_cipher_elem *cipher_list_head);
 
37
int
 
38
ecryptfs_select_crypto_module(struct ecryptfs_cipher_elem *cipher_list_head,
 
39
                              char **selected_cipher, int *keysize_bytes);
 
40
int ecryptfs_select_key_mod(struct ecryptfs_key_mod **key_mod,
 
41
                            struct ecryptfs_ctx *ctx);
 
42
 
 
43
int mygetchar();