ssl_stream集成新的client hello解析模块。

This commit is contained in:
zhengchao
2018-09-14 18:43:28 +08:00
parent eb756779b3
commit 7c49a89755
8 changed files with 175 additions and 167 deletions

View File

@@ -6,7 +6,7 @@
#include "cjson/cJSON.h"
#include "ssl_utils.h"
#include "key_keeper.h"
#include <assert.h>
struct keyring_private
{
struct keyring head;
@@ -29,15 +29,6 @@ static struct keyring_private* keyring_new(void)
return kyr;
}
// Increment reference count.
static void keyring_ref_inc(struct keyring_private* kyr)
{
pthread_mutex_lock(&kyr->mutex);
kyr->references++;
pthread_mutex_unlock(&kyr->mutex);
}
/*
* Thread-safe setter functions; they copy the value (refcounts are inc'd).
*/
@@ -216,6 +207,7 @@ static void tfe_rpc_on_succ(void* result, void* user)
//printf("data is %s\n", data);
printf("len is %d\n", len);
struct keyring* kyr = get_keyring_from_response(data);
assert(kyr!=NULL);
//add to hash table
}