My C++ implementation of Amazon’s Simple Storage System (S3) is contained within the files src/s3.cpp and s3/s3_glue.cpp that are included in the Advanced Forensic Format Library (AFFLIB). You can download AFFLIB from http://www.afflib.org/.