Configuration Functions


Functions

void aws_init ()
 Initialize the library.
void aws_set_debug (int d)
 Set debuging output.
void aws_set_id (char *const str)
 Set AWS account ID to be read from .awsAuth file.
void aws_set_key (char *const str)
 Set AWS account access key.
void aws_set_keyid (char *const str)
 Set AWS account access key ID.
int aws_read_config (char *const id)
 Read AWS authentication records.

Function Documentation

void aws_init (  ) 

Initialize the library.

Definition at line 404 of file aws4c.c.

Referenced by main().

int aws_read_config ( char *const   id  ) 

Read AWS authentication records.

Parameters:
id user ID

Open File Make sure that file permissions are set right

Read Lines

Skip Comments

Split the line on ':'

If the line is correct Set the IDs

Return error if not found

Definition at line 428 of file aws4c.c.

References __aws_getcfg(), __chomp(), __debug(), aws_set_id(), aws_set_key(), aws_set_keyid(), awsKeyID, and ID.

Referenced by main().

void aws_set_debug ( int  d  ) 

Set debuging output.

Parameters:
d when non-zero causes debugging output to be printed

Definition at line 408 of file aws4c.c.

References debug.

Referenced by main().

void aws_set_id ( char *const   str  ) 

Set AWS account ID to be read from .awsAuth file.

Parameters:
str account ID

Definition at line 415 of file aws4c.c.

References ID.

Referenced by aws_read_config().

void aws_set_key ( char *const   str  ) 

Set AWS account access key.

Definition at line 419 of file aws4c.c.

References awsKey.

Referenced by aws_read_config().

void aws_set_keyid ( char *const   str  ) 

Set AWS account access key ID.

Definition at line 423 of file aws4c.c.

References awsKeyID.

Referenced by aws_read_config().


Generated by Doxygen