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. |
void aws_init | ( | ) |
int aws_read_config | ( | char *const | id | ) |
Read AWS authentication records.
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 | ) |
void aws_set_id | ( | char *const | str | ) |
Set AWS account ID to be read from .awsAuth file.
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