~remote-login-service-team/remote-login-service/trunk

« back to all changes in this revision

Viewing changes to src/crypt.h

  • Committer: Ted Gould
  • Author(s): Albert Astals Cid
  • Date: 2012-09-21 04:47:27 UTC
  • mfrom: (66.1.7 save_set_last_used)
  • Revision ID: ted@gould.cx-20120921044727-ovzx1ya0t83hemcn
Handle the SetLastUsedServer calls

The data is saved in a file that is encrypted with the password and whose name is the hash of the username to provide as much privacy/security possible

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2012 Canonical Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License version 3, as
 
6
 * published by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
10
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
11
 * PURPOSE.  See the GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License along
 
14
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 */
 
17
 
 
18
#ifndef __CRYPT_H__
 
19
#define __CRYPT_H__
 
20
 
 
21
gchar * do_aes_encrypt(const gchar * buffer, const gchar * password, size_t *outBufferLength);
 
22
gchar * do_aes_decrypt(const gchar * encBuffer, const gchar * password, const size_t encBufferLength);
 
23
 
 
24
#endif