Go to the source code of this file.
Data Structures | |
struct | lfc_filereplica |
struct | ss_DIR |
struct | ss_filestatg |
Defines | |
#define | LCG_MAXPATHLEN 1023 |
#define | MAXPATHLENGTH 255 |
#define | VO "LCG_GFAL_VO" |
#define | SS_MAXPOOLNAMELEN 15 |
#define | SS_MAXHOSTNAMELEN 63 |
#define | SS_MAXSFNLEN 1103 |
#define | SS_MAXGUIDLEN 36 |
Typedefs | |
typedef unsigned long long | u_signed64 |
Functions | |
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 | lcg_scp (char *src_file, char *dest_file, char *vo, char *conf_file, int insecure, int verbose) |
secure copy | |
int | lcg_sdel (char *src_file, int aflag, char *se, char *vo, char *conf_file, int insecure, int verbose, int timeout) |
secure delete | |
int | securestorage_open_extended (char *lfn, int flags, mode_t mode, char *vo, char *guid, char *se) |
open remote file on Storage Element ( EXTENDED ) | |
int | securestorage_open_se (char *lfn, int flags, mode_t mode, char *se) |
open remote file on specified Storage Element | |
int | securestorage_open (char *lfn, int flags, mode_t mode) |
open remote file on default Storage Element | |
int | securestorage_close (int fd) |
close remote file | |
int | securestorage_write (int fd, void *buffer, size_t size) |
encrypt and write | |
int | securestorage_read (int fd, void *buffer, size_t size) |
read and decrypt | |
off_t | securestorage_lseek (int fd, off_t offset, int whence) |
positions/repositions to offset | |
int | securestorage_del_extended (char *lfn, int aflag, char *se, char *vo, char *conf_file, int insecure, int verbose, int timeout) |
delete remote file ( EXTENDED ) | |
int | securestorage_del (char *lfn, int aflag, char *se) |
delete remote file | |
ss_DIR * | securestorage_opendir (const char *name) |
open remote directory | |
dirent * | securestorage_readdir (ss_DIR *dp) |
read remote directory | |
int | securestorage_closedir (ss_DIR *dp) |
close remote directory | |
int | securestorage_mkdir (const char *path, mode_t mode) |
Make remote directory. | |
int | securestorage_rmdir (const char *path) |
Remove remote directory. | |
int | securestorage_statg (const char *path, const char *guid, struct ss_filestatg *statbuf) |
Get information about a LFC file or directory. | |
const char * | securestorage_error (int errnum) |
Return descriptive string of error. |
Definition in file securestorage.h.
|
Definition at line 77 of file securestorage.h. Referenced by lcg_scp(), lcg_scr(), lcg_sdel(), main(), securestorage_del_extended(), and ss_get_lfchome(). |
|
Definition at line 79 of file securestorage.h. |
|
Definition at line 91 of file securestorage.h. |
|
Definition at line 87 of file securestorage.h. |
|
Definition at line 85 of file securestorage.h. |
|
Definition at line 89 of file securestorage.h. |
|
Definition at line 81 of file securestorage.h. |
|
Definition at line 83 of file securestorage.h. |
|
secure copy copy a Grid file into local destination and remove encryption (only LFN input file are allowed).
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(). |
|
secure copy and register copy local file to Grid Storage Element in encrypted format, save KEY into keystore and register LFN into catalog.
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(). |
|
secure delete delete a grid file and associated KEY if necessary.
Definition at line 98 of file lcg_sdel.c. References accept_host, accept_lfn, accept_vo, errno, insecure, LCG_MAXPATHLEN, ss_check_lfn(), ss_delete_key(), SS_EINVALLFN, SS_EINVALSE, SS_EINVALVO, SS_ENOENT, SS_ESOURCENAMETOOLONG, ss_get_lfchome(), and verbose. Referenced by main(). |
|
close remote file opened with securestorage_open or securestorage_open_extended.
Definition at line 440 of file securestorage_api.c. References errno. Referenced by main(). |
|
close remote directory in LCG File Catalog.
Definition at line 976 of file securestorage_api.c. References errno, lfc_closedir(), serrno, and SS_EINVAL. Referenced by main(). |
|
delete remote file from selected SE, or all SE if -a flag is set to 1; it delete the associated Key if -a flag was specified, or if last replica was deleted.
Definition at line 847 of file securestorage_api.c. References errno, insecure, securestorage_del_extended(), SS_EINVALSE, SS_EINVALVO, verbose, and VO. Referenced by main(). |
|
delete remote file ( EXTENDED ) from selected SE, or all SE if -a flag is set to 1; it delete the associated Key if -a flag was specified, or if last replica was deleted; extended ( user could specify vo, conf_file, insecure,verbose and timeout ).
Definition at line 690 of file securestorage_api.c. References accept_host, accept_lfn, accept_vo, errno, insecure, LCG_MAXPATHLEN, ss_check_lfn(), ss_delete_key(), SS_EINVALLFN, SS_EINVALSE, SS_EINVALVO, SS_ENAMETOOLONG, SS_ENOENT, SS_ENOREPLICA, ss_get_lfchome(), verbose, and VO. Referenced by securestorage_del(). |
|
Return descriptive string of error. for errnum provided
|
|
positions/repositions to offset the file associated with the descriptor fd generated by a previous securestorage_open.
Definition at line 546 of file securestorage_api.c. References AES_BLOCK_SIZE, AES_encrypt(), errno, HEX_IVSIZE, ivec_dec(), ivec_inc(), securestorage_write(), SS_EOFFSET, SS_ESPIPE, and SS_EWHENCE. Referenced by main(). |
|
Make remote directory. in LCG File Catalog.
Definition at line 999 of file securestorage_api.c. References accept_lfn, errno, lfc_mkdir(), serrno, SS_EINVAL, SS_EINVALLFN, and ss_get_lfchome(). Referenced by main(). |
|
open remote file on default Storage Element existing file will be opened for reading, new file will be opened for reading and writing.
Definition at line 392 of file securestorage_api.c. References errno, securestorage_open_extended(), SS_EINVALLFN, SS_EINVALSE, SS_EINVALVO, and VO. Referenced by main(). |
|
open remote file on Storage Element ( EXTENDED )
existing file will be opened for reading, new file will be opened for reading and writing.
Definition at line 167 of file securestorage_api.c. References accept_host, accept_lfn, accept_vo, AES_BLOCK_SIZE, AES_set_encrypt_key(), errno, HEX_IVSIZE, HEX_KEYSIZE, insecure, ss_check_lfn(), SS_EENCINIT, SS_EEXIST, SS_EINVALGUID, SS_EINVALLFN, SS_EINVALSE, SS_EINVALVO, ss_generate_surl(), ss_get_key(), ss_get_lfchome(), ss_get_surl(), ss_rand(), ss_send_key(), and verbose. Referenced by securestorage_open(), and securestorage_open_se(). |
|
open remote file on specified Storage Element existing file will be opened for reading, new file will be opened for reading and writing.
Definition at line 355 of file securestorage_api.c. References errno, securestorage_open_extended(), SS_EINVALLFN, SS_EINVALSE, SS_EINVALVO, and VO. |
|
open remote directory from LCG File Catalog.
Definition at line 893 of file securestorage_api.c. References accept_host, accept_lfn, errno, lfc_opendirxg(), serrno, SS_EINVAL, SS_EINVALLFN, and ss_get_lfchome(). Referenced by main(). |
|
read and decrypt a file from remote Storage Element ( SE ).
Definition at line 506 of file securestorage_api.c. References errno, and securestorage_AES_ctr(). Referenced by main(). |
|
read remote directory from LCG File Catalog.
Definition at line 952 of file securestorage_api.c. References errno, lfc_readdir(), serrno, and SS_EINVAL. Referenced by main(). |
|
Remove remote directory. from LCG File Catalog.
Definition at line 1046 of file securestorage_api.c. References accept_lfn, errno, lfc_rmdir(), serrno, SS_EINVALLFN, and ss_get_lfchome(). Referenced by main(). |
|
Get information about a LFC file or directory. from LCG File Catalog.
Definition at line 1091 of file securestorage_api.c. References accept_lfn, errno, lfc_statg(), serrno, SS_EINVALLFN, and ss_get_lfchome(). Referenced by main(). |
|
encrypt and write a file on remote Storage Element ( SE ).
Definition at line 466 of file securestorage_api.c. References errno, and securestorage_AES_ctr(). Referenced by main(), and securestorage_lseek(). |