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

lcg_scr.c File Reference

secure copy and register API source file More...

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

Go to the source code of this file.


int lcg_scr (char *src_file, char *dest_file, char *guid, char *lfn, char *vo, char *conf_file, int insecure, int verbose, char *actual_gid)
 secure copy and register


int errno

Detailed Description

secure copy and register API source file

Giordano Scuderi

Definition in file lcg_scr.c.

Function Documentation

int lcg_scr char *  src_file,
char *  dest_file,
char *  guid,
char *  lfn,
char *  vo,
char *  conf_file,
int  insecure,
int  verbose,
char *  actual_gid

secure copy and register

copy local file to Grid Storage Element in encrypted format, save KEY into keystore and register LFN into catalog.

Giordano Scuderi
src_file Input file path.
dest_file Destination Storage Element hostname (Fully qualified).
guid If NULL a new random GUID will be used.
lfn Logical File Name (LFN) to register.
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.
actual_gid Generated GUID.
0 if success or < 0 if fail in this case errno is set appropriately.

Definition at line 96 of file lcg_scr.c.

References accept_host, 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_check_lfn(), ss_delete_key(), SS_EDESTNAMETOOLONG, SS_EENCINIT, SS_EEXIST, SS_EINVALGUID, SS_EINVALLFN, SS_EINVALSE, SS_EINVALVO, ss_generate_surl(), ss_get_lfchome(), ss_rand(), ss_send_key(), TRANSFERBLOCKSIZE, verbose, and VO.

Referenced by main().

Variable Documentation

int errno

Definition at line 90 of file lcg_scr.c.

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