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

lcg_scp.c File Reference

secure copy API source file More...

#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <dlfcn.h>
#include <uuid/uuid.h>
#include <gfal_api.h>
#include "lcg_util.h"
#include "lcg_scp.h"
#include "ss-util.h"
#include "keystore_client.h"

Go to the source code of this file.

Functions

int lcg_scp (char *src_file, char *dest_file, char *vo, char *conf_file, int insecure, int verbose)
 secure copy


Variables

int errno


Detailed Description

secure copy API source file

Author:
Giordano Scuderi
Date:
2007

Definition in file lcg_scp.c.


Function Documentation

int lcg_scp char *  src_file,
char *  dest_file,
char *  vo,
char *  conf_file,
int  insecure,
int  verbose
 

secure copy

copy a Grid file into local destination and remove encryption (only LFN input file are allowed).

Author:
Giordano Scuderi
Parameters:
src_file Input LFN.
dest_file Destination file (is a local path).
vo Virtual Organization; if NULL it use LCG_GFAL_VO environment varianble.
conf_file Actually ignored.
insecure Actually ignored.
verbose if 1 output is more verbose.
Returns:
0 if success or < 0 if fail in this case errno is set appropriately.

Definition at line 97 of file lcg_scp.c.

References accept_lfn, accept_vo, AES_BLOCK_SIZE, AES_KEY, AES_set_encrypt_key(), errno, HEX_IVSIZE, HEX_KEYSIZE, insecure, LCG_MAXPATHLEN, lock_memory(), aes_key_st::rd_key, securestorage_AES_ctr(), securestorage_error(), SS_EACCES, SS_EENCINIT, SS_EEXIST, SS_EINVALDEST, SS_EINVALLFN, SS_EINVALVO, SS_ESOURCENAMETOOLONG, ss_get_key(), ss_get_lfchome(), ss_get_surl(), TRANSFERBLOCKSIZE, verbose, and VO.

Referenced by main().


Variable Documentation

int errno
 

Definition at line 94 of file lcg_scp.c.


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