#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <dirent.h>
#include <fcntl.h>
#include <time.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <gfal_api.h>
#include "lcg_util.h"
#include "ss-util.h"
#include "keystore_client.h"
#include "securestorage.h"
#include "securestorage_api.h"
Go to the source code of this file.
Functions | |
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. | |
Variables | |
int | serrno |
int | errno |
Definition in file securestorage_api.c.
|
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(). |
|
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(). |
|
Definition at line 113 of file securestorage_api.c. |
|
Definition at line 112 of file securestorage_api.c. |