Main Page | Data Structures | File List | Data Fields | Globals

keystore_client.c File Reference

Secure Storage Keystore client API Library This acts as Client in the KEY/IV exchange with Secure Storage Keystore. More...

#include <errno.h>
#include <string.h>
#include <netdb.h>
#include "keystore_client.h"

Go to the source code of this file.

Data Structures

struct  ss_socket_client

Functions

int ss_send_key (const char *lfn, const unsigned char *key, const unsigned char *iv)
 Send Key Function.

int ss_get_key (const char *lfn, unsigned char *key, unsigned char *iv)
 Get Key Function.

int ss_delete_key (const char *lfn)
 Key Delete Function.


Variables

const char * ss_errlist [56]
int errno


Detailed Description

Secure Storage Keystore client API Library This acts as Client in the KEY/IV exchange with Secure Storage Keystore.

Author:
Giordano Scuderi and Nicola Dominante
Date:
2007

Definition in file keystore_client.c.


Function Documentation

int ss_delete_key const char *  lfn  ) 
 

Key Delete Function.

This function delete key from Keystore.

See also:
ss_send_key()

ss_get_key()

Parameters:
lfn is the Logical File Name of the GRID file
Returns:
0 if success or !=0 if fail, in the latter case securestorage_errno is set appropriately.

Definition at line 966 of file keystore_client.c.

References DEL, errno, and param_len.

Referenced by lcg_scr(), lcg_sdel(), and securestorage_del_extended().

int ss_get_key const char *  lfn,
unsigned char *  key,
unsigned char *  iv
 

Get Key Function.

This function get key from Keystore.

See also:
ss_delete_key()

ss_send_key()

Parameters:
lfn is the Logical File Name of the GRID file
key is the returned Key in hex format
iv is the returned Ivec in hex format
Returns:
0 if success or !=0 if fail, in the latter case securestorage_errno is set appropriately.

Definition at line 850 of file keystore_client.c.

References errno, GET, and param_len.

Referenced by lcg_scp(), and securestorage_open_extended().

int ss_send_key const char *  lfn,
const unsigned char *  key,
const unsigned char *  iv
 

Send Key Function.

This function save key to Keystore.

See also:
ss_delete_key()

ss_get_key()

Parameters:
lfn is the Logical File Name of the GRID file
key is the Key in hex format
iv is the Ivec in hex format
Returns:
0 if success or !=0 if fail, in the latter case securestorage_errno is set appropriately.

Definition at line 763 of file keystore_client.c.

References errno, param_len, and SEND.

Referenced by lcg_scr(), and securestorage_open_extended().


Variable Documentation

int errno
 

Definition at line 165 of file keystore_client.c.

const char* ss_errlist[56]
 

This class header file.

Definition at line 85 of file keystore_client.c.

Referenced by securestorage_error().


Generated on Wed May 30 09:56:31 2007 for Secure Storage Service by doxygen 1.3.5