Home
last modified time | relevance | path

Searched refs:AuthHandle (Results 1 – 25 of 100) sorted by relevance

1234

/ohos5.0/foundation/communication/dsoftbus/core/authentication/interface/
H A Dauth_interface.h104 void (*onDeviceVerifyPass)(AuthHandle authHandle, const NodeInfo *info);
106 void (*onDeviceDisconnect)(AuthHandle authHandle);
117 void (*onConnOpened)(uint32_t requestId, AuthHandle authHandle);
131 void AuthHandleLeaveLNN(AuthHandle authHandle);
176 void (*onDataReceived)(AuthHandle authHandle, const AuthTransData *data);
177 void (*onDisconnected)(AuthHandle authHandle);
178 void (*onException)(AuthHandle authHandle, int32_t error);
185 void AuthCloseConn(AuthHandle authHandle);
205 int32_t AuthGetConnInfo(AuthHandle authHandle, AuthConnInfo *connInfo);
214 void AuthFreeConn(const AuthHandle *authHandle);
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/authentication/include/
H A Dauth_device.h37 int32_t AuthDevicePostTransData(AuthHandle authHandle, const AuthTransData *dataInfo);
38 int32_t AuthDeviceEncrypt(AuthHandle *authHandle, const uint8_t *inData, uint32_t inLen, uint8_t *o…
40 int32_t AuthDeviceDecrypt(AuthHandle *authHandle, const uint8_t *inData, uint32_t inLen, uint8_t *o…
42 int32_t AuthDeviceGetConnInfo(AuthHandle authHandle, AuthConnInfo *connInfo);
49 void AuthDeviceCloseConn(AuthHandle authHandle);
51AuthHandle authHandle, const AuthConnInfo *connInfo, uint32_t requestId, const AuthConnCallback *c…
52 void AuthNotifyDeviceVerifyPassed(AuthHandle authHandle, const NodeInfo *nodeInfo);
53 void AuthNotifyDeviceDisconnect(AuthHandle authHandle);
H A Dauth_manager.h75 int32_t DelAuthReqInfoByAuthHandle(const AuthHandle *authHandle);
76 void AuthFreeLane(const AuthHandle *authHandle);
87 void RemoveAuthManagerByAuthId(AuthHandle authHandle);
96 void AuthDeviceGetLatestIdByUuid(const char *uuid, AuthLinkType type, AuthHandle *authHandle);
99 int32_t AuthDeviceGetAuthHandleByIndex(const char *udid, bool isServer, int32_t index, AuthHandle *…
105 int32_t GetHmlOrP2pAuthHandle(AuthHandle **authHandle, int32_t *num);
H A Dauth_lane.h31 int32_t DelAuthReqInfoByAuthHandle(const AuthHandle *authHandle);
32 void AuthFreeLane(const AuthHandle *authHandle);
H A Dauth_common.h114 …void (*onDataReceived)(AuthHandle authHandle, const AuthDataHead *head, const uint8_t *data, uint3…
115 void (*onDisconnected)(AuthHandle authHandle);
116 void (*onException)(AuthHandle authHandle, int32_t error);
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/common/mock/include/
H A Dtrans_auth_mock.h43 virtual void AuthHandleLeaveLNN(AuthHandle authHandle) = 0;
50 virtual void AuthCloseConn(AuthHandle authHandle) = 0;
51 virtual int32_t AuthPostTransData(AuthHandle authHandle, const AuthTransData *dataInfo) = 0;
64 virtual int32_t AuthGetConnInfo(AuthHandle authHandle, AuthConnInfo *connInfo) = 0;
74 virtual int32_t AuthEncrypt(AuthHandle *authHandle, const uint8_t *inData,
76 virtual int32_t AuthDecrypt(AuthHandle *authHandle, const uint8_t *inData,
108 MOCK_METHOD1(AuthHandleLeaveLNN, void (AuthHandle));
113 MOCK_METHOD1(AuthCloseConn, void (AuthHandle));
114 MOCK_METHOD2(AuthPostTransData, int32_t (AuthHandle, const AuthTransData *));
119 MOCK_METHOD4(AuthGetLatestIdByUuid, void (const char *, AuthLinkType, bool, AuthHandle *));
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/channel/
H A Dauth_negotiate_channel.h34 AuthHandle handle_;
39 AuthHandle handle_;
59 static void ProcessDetectLinkResponse(AuthHandle handle, const NegotiateMessage &response);
62 explicit AuthNegotiateChannel(const AuthHandle &handle);
74 static void OnConnOpened(uint32_t requestId, AuthHandle authHandle);
93 AuthHandle handle_;
H A Dauth_negotiate_channel.cpp38 AuthNegotiateChannel::AuthNegotiateChannel(const AuthHandle &handle) in AuthNegotiateChannel()
167 void AuthNegotiateChannel::ProcessDetectLinkResponse(AuthHandle handle, const NegotiateMessage &res… in ProcessDetectLinkResponse()
207 static void OnAuthDataReceived(AuthHandle handle, const AuthTransData *data) in OnAuthDataReceived()
247 static void OnAuthDisconnected(AuthHandle authHandle) in OnAuthDisconnected()
281 static void OnAuthException(AuthHandle authHandle, int32_t error) in OnAuthException()
321 void AuthNegotiateChannel::OnConnOpened(uint32_t requestId, AuthHandle authHandle) in OnConnOpened()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/mock/
H A Dtrans_tcp_direct_message_test_mock.h40 virtual int32_t GetAuthHandleByChanId(int32_t channelId, AuthHandle *authHandle) = 0;
41 …virtual int32_t AuthEncrypt(AuthHandle *authHandle, const uint8_t *inData, uint32_t inLen, uint8_t…
58 virtual int32_t SetAuthHandleByChanId(int32_t channelId, AuthHandle *authHandle) = 0;
59 virtual int32_t AuthDecrypt(AuthHandle *authHandle, const uint8_t *inData,
63 virtual int32_t AuthGetConnInfo(AuthHandle authHandle, AuthConnInfo *connInfo) = 0;
90 MOCK_METHOD2(GetAuthHandleByChanId, int32_t (int32_t channelId, AuthHandle *authHandle));
91 …MOCK_METHOD5(AuthEncrypt, int32_t (AuthHandle *authHandle, const uint8_t *inData, uint32_t inLen, …
108 MOCK_METHOD2(SetAuthHandleByChanId, int32_t (int32_t channelId, AuthHandle *authHandle));
109 MOCK_METHOD5(AuthDecrypt, int32_t (AuthHandle *authHandle, const uint8_t *inData,
113 MOCK_METHOD2(AuthGetConnInfo, int32_t (AuthHandle authHandle, AuthConnInfo *connInfo));
H A Dtrans_tcp_direct_message_test_mock.cpp49 int32_t GetAuthHandleByChanId(int32_t channelId, AuthHandle *authHandle) in GetAuthHandleByChanId()
54 int32_t AuthEncrypt(AuthHandle *authHandle, const uint8_t *inData, uint32_t inLen, uint8_t *outData, in AuthEncrypt()
130 int32_t SetAuthHandleByChanId(int32_t channelId, AuthHandle *authHandle) in SetAuthHandleByChanId()
135 int32_t AuthDecrypt(AuthHandle *authHandle, const uint8_t *inData, uint32_t inLen, uint8_t *outData… in AuthDecrypt()
150 int32_t AuthGetConnInfo(AuthHandle authHandle, AuthConnInfo *connInfo) in AuthGetConnInfo()
H A Dtrans_tcp_direct_wifi_test_mock.h33 …virtual void AuthGetLatestIdByUuid(const char *uuid, AuthLinkType type, bool isMeta, AuthHandle *a…
48 AuthHandle *authHandle));
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/common/mock/src/
H A Dtrans_auth_mock.cpp89 void AuthHandleLeaveLNN(AuthHandle authHandle) in AuthHandleLeaveLNN()
109 void AuthCloseConn(AuthHandle authHandle) in AuthCloseConn()
114 int32_t AuthPostTransData(AuthHandle authHandle, const AuthTransData *dataInfo) in AuthPostTransData()
134 void AuthGetLatestIdByUuid(const char *uuid, bool isIpConnection, bool isMeta, AuthHandle *authHand… in AuthGetLatestIdByUuid()
164 int32_t AuthGetConnInfo(AuthHandle authHandle, AuthConnInfo *connInfo) in AuthGetConnInfo()
200 int32_t AuthEncrypt(AuthHandle *authHandle, const uint8_t *inData, in AuthEncrypt()
206 int32_t AuthDecrypt(AuthHandle *authHandle, const uint8_t *inData, in AuthDecrypt()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/mock/
H A Dauth_mock.h29 virtual void AuthHandleLeaveLNN(AuthHandle authHandle) = 0;
37 virtual int32_t AuthPostTransData(AuthHandle authHandle, const AuthTransData *dataInfo) = 0;
46 MOCK_METHOD(void, AuthHandleLeaveLNN, (AuthHandle), (override));
55 MOCK_METHOD2(AuthPostTransData, int32_t (AuthHandle, const AuthTransData *));
H A Dauth_mock.cpp39 void AuthHandleLeaveLNN(AuthHandle authHandle) in AuthHandleLeaveLNN()
75 int32_t AuthPostTransData(AuthHandle authHandle, const AuthTransData *dataInfo) in AuthPostTransData()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/include/
H A Dtrans_tcp_direct_sessionconn.h53 AuthHandle authHandle;
104 int32_t SetAuthHandleByChanId(int32_t channelId, AuthHandle *authHandle);
106 int32_t GetAuthHandleByChanId(int32_t channelId, AuthHandle *authHandle);
118 int32_t *GetChannelIdsByAuthIdAndStatus(int32_t *num, const AuthHandle *authHandle, uint32_t status…
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/lane/include/
H A Dlnn_lane_deps_mock.h74 virtual void AuthCloseConn(AuthHandle authHandle) = 0;
85 virtual int32_t AuthPostTransData(AuthHandle authHandle, const AuthTransData *dataInfo) = 0;
86 virtual int32_t AuthGetConnInfo(AuthHandle authHandle, AuthConnInfo *connInfo) = 0;
110 …virtual void AuthDeviceGetLatestIdByUuid(const char *uuid, AuthLinkType type, AuthHandle *authHand…
140 MOCK_METHOD1(AuthCloseConn, void (AuthHandle));
150 MOCK_METHOD2(AuthPostTransData, int32_t (AuthHandle, const AuthTransData *));
151 MOCK_METHOD2(AuthGetConnInfo, int32_t (AuthHandle, AuthConnInfo *));
175 …MOCK_METHOD3(AuthDeviceGetLatestIdByUuid, void (const char *uuid, AuthLinkType type, AuthHandle *a…
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_net_builder.h106 AuthHandle authHandle;
112 AuthHandle authHandle;
160 int32_t LnnNotifyAuthHandleLeaveLNN(AuthHandle authHandle);
162 int32_t LnnNotifyLeaveLnnByAuthHandle(AuthHandle *authHandle);
192 void PostVerifyResult(uint32_t requestId, int32_t retCode, AuthHandle authHandle, const NodeInfo *i…
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/include/
H A Dsoftbus_proxychannel_message.h81 AuthHandle authHandle; /* for cipher */
131 AuthHandle authHandle; /* for cipher */
168 int32_t TransProxyParseMessage(char *data, int32_t len, ProxyMessage *msg, AuthHandle *auth);
169 int32_t TransProxyPackMessage(ProxyMessageHead *msg, AuthHandle authHandle, ProxyDataInfo *dataInfo…
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_manager_test.cpp202 AuthHandle authHandle = { .authId = AUTH_SEQ, .type = AUTH_LINK_TYPE_WIFI, };
262 AuthHandle authHandle = {.authId = AUTH_SEQ_4, .type = AUTH_LINK_TYPE_BLE};
300 AuthHandle authHandle = {.authId = AUTH_SEQ_5, .type = AUTH_LINK_TYPE_BLE};
338 AuthHandle authHandle = {.authId = AUTH_SEQ_1, .type = AUTH_LINK_TYPE_WIFI};
366 AuthHandle authHandle1 = {.authId = AUTH_SEQ_3, .type = AUTH_LINK_TYPE_BLE};
367 AuthHandle authHandle2 = {.authId = AUTH_SEQ_1, .type = AUTH_LINK_TYPE_WIFI};
385 AuthHandle authHandle = { .authId = AUTH_SEQ };
402 static void MyConnOpenedFunc(uint32_t requestId, AuthHandle authHandle) in MyConnOpenedFunc()
829 AuthHandle *authHandle = &authHandle1;
845 AuthHandle authHandle;
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/
H A Dtrans_udp_nego_test.cpp223 AuthHandle authHandle = { .authId = AUTH_INVALID_ID, .type = AUTH_LINK_TYPE_WIFI };
245 AuthHandle authHandle = { .authId = 0, .type = AUTH_LINK_TYPE_WIFI };
261 AuthHandle authHandle = { .authId = INVALID_ID, .type = AUTH_LINK_TYPE_WIFI };
366 AuthHandle authHandle = { .authId = 1, .type = AUTH_LINK_TYPE_WIFI };
393 AuthHandle authHandle = { .authId = 0, .type = AUTH_LINK_TYPE_WIFI };
416 AuthHandle authHandle = { .authId = 1, .type = AUTH_LINK_TYPE_WIFI };
459 AuthHandle authHandle = { .authId = 1, .type = AUTH_LINK_TYPE_WIFI };
490 AuthHandle authHandle = { .authId = 1, .type = AUTH_LINK_TYPE_WIFI };
514 AuthHandle authHandle = { .authId = 1, .type = AUTH_LINK_TYPE_WIFI };
804 AuthHandle authHandle = { .authId = 0, .type = AUTH_LINK_TYPE_WIFI };
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_interface.c113 static void NotifyTransDataReceived(AuthHandle authHandle, in NotifyTransDataReceived()
137 static void NotifyTransDisconnected(AuthHandle authHandle) in NotifyTransDisconnected()
146 static void NotifyTransException(AuthHandle authHandle, int32_t error) in NotifyTransException()
220 int32_t AuthCheckSessionKeyValidByAuthHandle(const AuthHandle *authHandle) in AuthCheckSessionKeyValidByAuthHandle()
259 int32_t AuthPostTransData(AuthHandle authHandle, const AuthTransData *dataInfo) in AuthPostTransData()
273 void AuthCloseConn(AuthHandle authHandle) in AuthCloseConn()
297 void AuthFreeConn(const AuthHandle *authHandle) in AuthFreeConn()
340 void AuthGetLatestIdByUuid(const char *uuid, AuthLinkType type, bool isMeta, AuthHandle *authHandle) in AuthGetLatestIdByUuid()
370 AuthHandle *authHandle) in AuthGetAuthHandleByIndex()
529 int32_t AuthEncrypt(AuthHandle *authHandle, const uint8_t *inData, uint32_t inLen, uint8_t *outData, in AuthEncrypt()
[all …]
H A Dauth_device.c174 int32_t AuthDevicePostTransData(AuthHandle authHandle, const AuthTransData *dataInfo) in AuthDevicePostTransData()
213 int32_t AuthDeviceEncrypt(AuthHandle *authHandle, const uint8_t *inData, uint32_t inLen, uint8_t *o… in AuthDeviceEncrypt()
236 int32_t AuthDeviceDecrypt(AuthHandle *authHandle, const uint8_t *inData, uint32_t inLen, uint8_t *o… in AuthDeviceDecrypt()
259 int32_t AuthDeviceGetConnInfo(AuthHandle authHandle, AuthConnInfo *connInfo) in AuthDeviceGetConnInfo()
350 void AuthNotifyDeviceVerifyPassed(AuthHandle authHandle, const NodeInfo *nodeInfo) in AuthNotifyDeviceVerifyPassed()
374 void AuthNotifyDeviceDisconnect(AuthHandle authHandle) in AuthNotifyDeviceDisconnect()
609AuthHandle authHandle, const AuthConnInfo *connInfo, uint32_t requestId, const AuthConnCallback *c… in AuthStartReconnectDevice()
645 static bool AuthCheckSessionKey(AuthHandle *authHandle) in AuthCheckSessionKey()
666 AuthHandle authHandle = { .authId = AUTH_INVALID_ID, .type = info->type }; in AuthDeviceOpenConn()
701 void AuthDeviceCloseConn(AuthHandle authHandle) in AuthDeviceCloseConn()
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/virtual/
H A Dauth_interface_virtual.c105 int32_t AuthPostTransData(AuthHandle authHandle, const AuthTransData *dataInfo) in AuthPostTransData()
112 void AuthCloseConn(AuthHandle authHandle) in AuthCloseConn()
142 void AuthGetLatestIdByUuid(const char *uuid, AuthLinkType type, bool isMeta, AuthHandle *authHandle) in AuthGetLatestIdByUuid()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_p2p.c406 static void OnAuthConnOpened(uint32_t requestId, AuthHandle authHandle) in OnAuthConnOpened()
507 static void SendVerifyP2pFailRsp(AuthHandle authHandle, int64_t seq, in SendVerifyP2pFailRsp()
538 static int32_t SendVerifyP2pRsp(AuthHandle authHandle, int32_t module, int32_t flag, int64_t seq, in SendVerifyP2pRsp()
577 AuthHandle authHandle) in PackAndSendVerifyP2pRsp()
593 static int32_t StartHmlListenerByUuid(AuthHandle authHandle, const char *myIp, int32_t *myPort) in StartHmlListenerByUuid()
598 AuthHandle authHandleTmp = { 0 }; in StartHmlListenerByUuid()
614 static int32_t OnVerifyP2pRequest(AuthHandle authHandle, int64_t seq, const cJSON *json, bool isAut… in OnVerifyP2pRequest()
799 static void OnAuthMsgProc(AuthHandle authHandle, int32_t flags, int64_t seq, const cJSON *json) in OnAuthMsgProc()
811 static void OnAuthDataRecv(AuthHandle authHandle, const AuthTransData *data) in OnAuthDataRecv()
837 static void OnAuthChannelClose(AuthHandle authHandle) in OnAuthChannelClose()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_net_builder_init.c86 static void OnReAuthVerifyPassed(uint32_t requestId, AuthHandle authHandle, const NodeInfo *info) in OnReAuthVerifyPassed()
142 AuthHandle authHandle = { .authId = AUTH_INVALID_ID }; in OnReAuthVerifyFailed()
536 static void OnDeviceVerifyPass(AuthHandle authHandle, const NodeInfo *info) in OnDeviceVerifyPass()
576 static void OnDeviceDisconnect(AuthHandle authHandle) in OnDeviceDisconnect()
582 AuthHandle *para = NULL; in OnDeviceDisconnect()
583 para = (AuthHandle *)SoftBusMalloc(sizeof(AuthHandle)); in OnDeviceDisconnect()

1234