summaryrefslogtreecommitdiff
path: root/unit
diff options
context:
space:
mode:
authorMariusz Skamra <mariusz.skamra@tieto.com>2015-05-11 14:49:45 +0200
committerSzymon Janc <szymon.janc@tieto.com>2015-05-19 16:42:43 +0200
commitb576fa4d336386d12e7e460b6530db9092d03d69 (patch)
tree3b23311dbecaf8f5aba474ba74504ebdae358e63 /unit
parentc895e5ae5b40bdad2333eb4e025f9d7f8f87902c (diff)
downloadbluez-b576fa4d336386d12e7e460b6530db9092d03d69.tar.gz
shared/att: Add ext_signed flag to be able to use external crypto
Due to the issues with CSRK tests ext_signed flag has been added to allow android/gatt handle signed write operations. This patch fixes following tests: GAP__TC_SEC_CSIGN_BV_02_C GAP__TC_SEC_CSIGN_BI_01_C GAP__TC_SEC_CSIGN_BI_02_C GAP__TC_SEC_CSIGN_BI_03_C GAP__TC_SEC_CSIGN_BI_04_C SM__TC_SIGN_BV_03_C
Diffstat (limited to 'unit')
-rw-r--r--unit/test-gatt.c2
-rw-r--r--unit/test-gattrib.c2
-rw-r--r--unit/test-hog.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/unit/test-gatt.c b/unit/test-gatt.c
index a7ea7cd2d..40e2ca967 100644
--- a/unit/test-gatt.c
+++ b/unit/test-gatt.c
@@ -647,7 +647,7 @@ static struct context *create_context(uint16_t mtu, gconstpointer data)
err = socketpair(AF_UNIX, SOCK_SEQPACKET | SOCK_CLOEXEC, 0, sv);
g_assert(err == 0);
- context->att = bt_att_new(sv[0]);
+ context->att = bt_att_new(sv[0], false);
g_assert(context->att);
switch (test_data->context_type) {
diff --git a/unit/test-gattrib.c b/unit/test-gattrib.c
index 28542f3c8..416e59635 100644
--- a/unit/test-gattrib.c
+++ b/unit/test-gattrib.c
@@ -92,7 +92,7 @@ static void setup_context(struct context *cxt, gconstpointer data)
g_io_channel_set_encoding(cxt->server_io, NULL, NULL);
g_io_channel_set_buffered(cxt->server_io, FALSE);
- cxt->att = g_attrib_new(cxt->att_io, DEFAULT_MTU);
+ cxt->att = g_attrib_new(cxt->att_io, DEFAULT_MTU, false);
g_assert(cxt->att != NULL);
}
diff --git a/unit/test-hog.c b/unit/test-hog.c
index 778f08791..24731d775 100644
--- a/unit/test-hog.c
+++ b/unit/test-hog.c
@@ -187,7 +187,7 @@ static struct context *create_context(gconstpointer data)
g_io_channel_set_close_on_unref(att_io, TRUE);
- context->attrib = g_attrib_new(att_io, 23);
+ context->attrib = g_attrib_new(att_io, 23, false);
g_assert(context->attrib);
g_io_channel_unref(att_io);