Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend secure transport interface #81

Merged
merged 2 commits into from
Nov 2, 2017
Merged

Conversation

Lagovas
Copy link
Contributor

@Lagovas Lagovas commented Nov 2, 2017

because each wrapper and examples for all languages need to implement secure session callback i decided to move callback implementations from C examples to hermes-core. I think will be better to include it to hermes-core as part of secure transport which should be used in wrappers

@@ -24,6 +24,8 @@
#include "hermes/secure_transport/transport.h"
#include "utils.h"

#define TEMP_BUFFER_SIZE (2048)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍 👍

@@ -153,6 +153,7 @@ uint32_t hm_rpc_server_call(hm_rpc_server_t* server, void* user_data){
uint8_t* func_signature=malloc(func_signature_length);
assert(func_signature);
if(HM_SUCCESS!=server->transport->recv(server->transport->user_data, func_signature, func_signature_length)){
free(func_signature);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@vixentael vixentael merged commit 2883121 into master Nov 2, 2017
@Lagovas Lagovas deleted the lagovas/refactor-c-examples branch November 16, 2017 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants