Skip to content

Commit ca5ea86

Browse files
API Fixes to update to latest TLS API from aws-c-io (#14)
* Added .idea (clion) to gitignore * Updated samples to match TLS API changes
1 parent b08476d commit ca5ea86

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

samples/jobs/describe_job_execution/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ int main(int argc, char *argv[])
186186
}
187187

188188
auto connectionOptions = tlsCtx.NewConnectionOptions();
189-
connectionOptions.server_name = endpoint.c_str();
189+
connectionOptions.server_name = aws_string_new_from_c_str(aws_default_allocator(), endpoint.c_str());
190190

191191
/*
192192
* Now create a connection object. Note: This type is move only

samples/shadow/shadow_sync/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ int main(int argc, char *argv[])
226226
}
227227

228228
auto connectionOptions = tlsCtx.NewConnectionOptions();
229-
connectionOptions.server_name = endpoint.c_str();
229+
connectionOptions.server_name = aws_string_new_from_c_str(aws_default_allocator(), endpoint.c_str());
230230

231231
/*
232232
* Now create a connection object. Note: This type is move only

0 commit comments

Comments
 (0)