ssl_stream集成新的client hello解析模块。
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user