Skip to content

Commit

Permalink
Remove 'emberAfClusterSecurityCustomCallback' from src/app
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple committed Nov 13, 2020
1 parent 9fcb5d5 commit bf65e42
Show file tree
Hide file tree
Showing 17 changed files with 2 additions and 853 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,25 +166,6 @@ bool emberAfKeyEstablishmentClusterClientCommandReceivedCallback(EmberAfClusterC
*/
void emberAfClusterInitCallback(uint8_t endpoint, EmberAfClusterId clusterId) {}

/** @brief Cluster Security Custom
*
* This callback is fired when determining if APS encryption is required for a
* cluster outside of the specification's required clusters. In other words,
* for the Smart Energy profile this would be a cluster beyond the list that
* normally requires APS encryption.
*
* @param profileId The profile ID Ver.: always
* @param clusterId The cluster ID Ver.: always
* @param incoming Whether this is an incoming or outgoing message. Ver.:
* always
* @param commandId The ZCL command ID being sent/received. Ver.: always
*/
bool emberAfClusterSecurityCustomCallback(EmberAfProfileId profileId, EmberAfClusterId clusterId, bool incoming, uint8_t commandId)
{
// By default, assume APS encryption is not required.
return false;
}

/** @brief Default Response
*
* This function is called by the application framework when a Default Response
Expand Down Expand Up @@ -1323,20 +1304,6 @@ bool emberAfReportAttributesCallback(EmberAfClusterId clusterId, uint8_t * buffe
*/
void emberAfScanErrorCallback(EmberStatus status) {}

/** @brief Security Init
*
* This callback is called by the framework to give the application a chance to
* modify the security settings of the node during network initialization.
* Depending on the context when this callback is called, the pointer to the
* initial security state may be NULL, which means the initial security state
* can no longer be modified as the node is already operating on the network.
*
* @param state Ver.: always
* @param extended Ver.: always
* @param trustCenter Ver.: always
*/
void emberAfSecurityInitCallback(EmberInitialSecurityState * state, EmberExtendedSecurityBitmask * extended, bool trustCenter) {}

/** @brief Key Establishment Cluster Server Command Received
*
* This function is called by the application framework when a client-to-server
Expand Down Expand Up @@ -1514,32 +1481,6 @@ EmberStatus emberAfStartSearchForJoinableNetworkCallback(void)
*/
void emberAfStopMoveCallback(void) {}

/** @brief Trust Center Join
*
* This callback is called from within the application framework's
* implementation of emberTrustCenterJoinHandler or ezspTrustCenterJoinHandler.
* This callback provides the same arguments passed to the
* TrustCenterJoinHandler. For more information about the TrustCenterJoinHandler
* please see documentation included in stack/include/trust-center.h.
*
* @param newNodeId Ver.: always
* @param newNodeEui64 Ver.: always
* @param parentOfNewNode Ver.: always
* @param status Ver.: always
* @param decision Ver.: always
*/
void emberAfTrustCenterJoinCallback(EmberNodeId newNodeId, EmberEUI64 newNodeEui64, EmberNodeId parentOfNewNode,
EmberDeviceUpdate status, EmberJoinDecision decision)
{}

/** @brief Trust Center Keepalive Abort
*
* This callback is called when the device should abort the trust center
* keepalive process.
*
*/
void emberAfTrustCenterKeepaliveAbortCallback(void) {}

/** @brief Trust Center Keepalive Update
*
* This callback is called when the device finishes registration (successfully
Expand Down
50 changes: 0 additions & 50 deletions examples/all-clusters-app/all-clusters-common/gen/callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,6 @@ EmberStatus emberAfClearReportTableCallback(void);
* @param clusterId Ver.: always
*/
void emberAfClusterInitCallback(uint8_t endpoint, EmberAfClusterId clusterId);
/** @brief Cluster Security Custom
*
* This callback is fired when determining if APS encryption is required for a
* cluster outside of the specification's required clusters. In other words,
* for the Smart Energy profile this would be a cluster beyond the list that
* normally requires APS encryption.
*
* @param profileId The profile ID Ver.: always
* @param clusterId The cluster ID Ver.: always
* @param incoming Whether this is an incoming or outgoing message. Ver.:
* always
* @param commandId The ZCL command ID being sent/received. Ver.: always
*/
bool emberAfClusterSecurityCustomCallback(EmberAfProfileId profileId, EmberAfClusterId clusterId, bool incoming, uint8_t commandId);
/** @brief Default Response
*
* This function is called by the application framework when a Default Response
Expand Down Expand Up @@ -1088,19 +1074,6 @@ void emberAfScanCompleteCallback(uint8_t channel, EmberStatus status);
* @param status The status of the scan. Ver.: always
*/
void emberAfScanErrorCallback(EmberStatus status);
/** @brief Security Init
*
* This callback is called by the framework to give the application a chance to
* modify the security settings of the node during network initialization.
* Depending on the context when this callback is called, the pointer to the
* initial security state may be NULL, which means the initial security state
* can no longer be modified as the node is already operating on the network.
*
* @param state Ver.: always
* @param extended Ver.: always
* @param trustCenter Ver.: always
*/
void emberAfSecurityInitCallback(EmberInitialSecurityState * state, EmberExtendedSecurityBitmask * extended, bool trustCenter);
/** @brief Set Default Poll Control
*
* This function will set the default poll control for the current network to
Expand Down Expand Up @@ -1253,29 +1226,6 @@ EmberStatus emberAfStartSearchForJoinableNetworkCallback(void);
*
*/
void emberAfStopMoveCallback(void);
/** @brief Trust Center Join
*
* This callback is called from within the application framework's
* implementation of emberTrustCenterJoinHandler or ezspTrustCenterJoinHandler.
* This callback provides the same arguments passed to the
* TrustCenterJoinHandler. For more information about the TrustCenterJoinHandler
* please see documentation included in stack/include/trust-center.h.
*
* @param newNodeId Ver.: always
* @param newNodeEui64 Ver.: always
* @param parentOfNewNode Ver.: always
* @param status Ver.: always
* @param decision Ver.: always
*/
void emberAfTrustCenterJoinCallback(EmberNodeId newNodeId, EmberEUI64 newNodeEui64, EmberNodeId parentOfNewNode,
EmberDeviceUpdate status, EmberJoinDecision decision);
/** @brief Trust Center Keepalive Abort
*
* This callback is called when the device should abort the trust center
* keepalive process.
*
*/
void emberAfTrustCenterKeepaliveAbortCallback(void);
/** @brief Trust Center Keepalive Update
*
* This callback is called when the device finishes registration (successfully
Expand Down
66 changes: 0 additions & 66 deletions examples/lighting-app/lighting-common/gen/callback-stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,25 +163,6 @@ bool emberAfKeyEstablishmentClusterClientCommandReceivedCallback(EmberAfClusterC
*/
void emberAfClusterInitCallback(uint8_t endpoint, EmberAfClusterId clusterId) {}

/** @brief Cluster Security Custom
*
* This callback is fired when determining if APS encryption is required for a
* cluster outside of the specification's required clusters. In other words,
* for the Smart Energy profile this would be a cluster beyond the list that
* normally requires APS encryption.
*
* @param profileId The profile ID Ver.: always
* @param clusterId The cluster ID Ver.: always
* @param incoming Whether this is an incoming or outgoing message. Ver.:
* always
* @param commandId The ZCL command ID being sent/received. Ver.: always
*/
bool emberAfClusterSecurityCustomCallback(EmberAfProfileId profileId, EmberAfClusterId clusterId, bool incoming, uint8_t commandId)
{
// By default, assume APS encryption is not required.
return false;
}

/** @brief Default Response
*
* This function is called by the application framework when a Default Response
Expand Down Expand Up @@ -1368,20 +1349,6 @@ bool emberAfReportAttributesCallback(EmberAfClusterId clusterId, uint8_t * buffe
*/
void emberAfScanErrorCallback(EmberStatus status) {}

/** @brief Security Init
*
* This callback is called by the framework to give the application a chance to
* modify the security settings of the node during network initialization.
* Depending on the context when this callback is called, the pointer to the
* initial security state may be NULL, which means the initial security state
* can no longer be modified as the node is already operating on the network.
*
* @param state Ver.: always
* @param extended Ver.: always
* @param trustCenter Ver.: always
*/
void emberAfSecurityInitCallback(EmberInitialSecurityState * state, EmberExtendedSecurityBitmask * extended, bool trustCenter) {}

/** @brief Key Establishment Cluster Server Command Received
*
* This function is called by the application framework when a client-to-server
Expand Down Expand Up @@ -1577,32 +1544,6 @@ EmberStatus emberAfStartSearchForJoinableNetworkCallback(void)
*/
void emberAfStopMoveCallback(void) {}

/** @brief Trust Center Join
*
* This callback is called from within the application framework's
* implementation of emberTrustCenterJoinHandler or ezspTrustCenterJoinHandler.
* This callback provides the same arguments passed to the
* TrustCenterJoinHandler. For more information about the TrustCenterJoinHandler
* please see documentation included in stack/include/trust-center.h.
*
* @param newNodeId Ver.: always
* @param newNodeEui64 Ver.: always
* @param parentOfNewNode Ver.: always
* @param status Ver.: always
* @param decision Ver.: always
*/
void emberAfTrustCenterJoinCallback(EmberNodeId newNodeId, EmberEUI64 newNodeEui64, EmberNodeId parentOfNewNode,
EmberDeviceUpdate status, EmberJoinDecision decision)
{}

/** @brief Trust Center Keepalive Abort
*
* This callback is called when the device should abort the trust center
* keepalive process.
*
*/
void emberAfTrustCenterKeepaliveAbortCallback(void) {}

/** @brief Trust Center Keepalive Update
*
* This callback is called when the device finishes registration (successfully
Expand Down Expand Up @@ -1672,13 +1613,6 @@ void halRadioPowerUpHandler(void) {}
*/
void halSleepCallback(bool enter, SleepModes sleepMode) {}

// These functions / constants are added to avoid ld failure when building with GN
// They should be removed if we have zcl updates and nolonger need this or causing other errors
bool emberAfIsCurrentSecurityProfileSmartEnergy(void)
{
return false;
}

void emberAfPluginUpdateTcLinkKeyZigbeeKeyEstablishmentCallback(EmberEUI64 partner, EmberKeyStatus status) {}

void emberAfPluginNetworkSteeringMarker(void) {}
50 changes: 0 additions & 50 deletions examples/lighting-app/lighting-common/gen/callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,6 @@ EmberStatus emberAfClearReportTableCallback(void);
* @param clusterId Ver.: always
*/
void emberAfClusterInitCallback(uint8_t endpoint, EmberAfClusterId clusterId);
/** @brief Cluster Security Custom
*
* This callback is fired when determining if APS encryption is required for a
* cluster outside of the specification's required clusters. In other words,
* for the Smart Energy profile this would be a cluster beyond the list that
* normally requires APS encryption.
*
* @param profileId The profile ID Ver.: always
* @param clusterId The cluster ID Ver.: always
* @param incoming Whether this is an incoming or outgoing message. Ver.:
* always
* @param commandId The ZCL command ID being sent/received. Ver.: always
*/
bool emberAfClusterSecurityCustomCallback(EmberAfProfileId profileId, EmberAfClusterId clusterId, bool incoming, uint8_t commandId);
/** @brief Default Response
*
* This function is called by the application framework when a Default Response
Expand Down Expand Up @@ -1088,19 +1074,6 @@ void emberAfScanCompleteCallback(uint8_t channel, EmberStatus status);
* @param status The status of the scan. Ver.: always
*/
void emberAfScanErrorCallback(EmberStatus status);
/** @brief Security Init
*
* This callback is called by the framework to give the application a chance to
* modify the security settings of the node during network initialization.
* Depending on the context when this callback is called, the pointer to the
* initial security state may be NULL, which means the initial security state
* can no longer be modified as the node is already operating on the network.
*
* @param state Ver.: always
* @param extended Ver.: always
* @param trustCenter Ver.: always
*/
void emberAfSecurityInitCallback(EmberInitialSecurityState * state, EmberExtendedSecurityBitmask * extended, bool trustCenter);
/** @brief Set Default Poll Control
*
* This function will set the default poll control for the current network to
Expand Down Expand Up @@ -1253,29 +1226,6 @@ EmberStatus emberAfStartSearchForJoinableNetworkCallback(void);
*
*/
void emberAfStopMoveCallback(void);
/** @brief Trust Center Join
*
* This callback is called from within the application framework's
* implementation of emberTrustCenterJoinHandler or ezspTrustCenterJoinHandler.
* This callback provides the same arguments passed to the
* TrustCenterJoinHandler. For more information about the TrustCenterJoinHandler
* please see documentation included in stack/include/trust-center.h.
*
* @param newNodeId Ver.: always
* @param newNodeEui64 Ver.: always
* @param parentOfNewNode Ver.: always
* @param status Ver.: always
* @param decision Ver.: always
*/
void emberAfTrustCenterJoinCallback(EmberNodeId newNodeId, EmberEUI64 newNodeEui64, EmberNodeId parentOfNewNode,
EmberDeviceUpdate status, EmberJoinDecision decision);
/** @brief Trust Center Keepalive Abort
*
* This callback is called when the device should abort the trust center
* keepalive process.
*
*/
void emberAfTrustCenterKeepaliveAbortCallback(void);
/** @brief Trust Center Keepalive Update
*
* This callback is called when the device finishes registration (successfully
Expand Down
59 changes: 0 additions & 59 deletions examples/lock-app/lock-common/gen/callback-stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,25 +164,6 @@ bool emberAfKeyEstablishmentClusterClientCommandReceivedCallback(EmberAfClusterC
*/
void emberAfClusterInitCallback(uint8_t endpoint, EmberAfClusterId clusterId) {}

/** @brief Cluster Security Custom
*
* This callback is fired when determining if APS encryption is required for a
* cluster outside of the specification's required clusters. In other words,
* for the Smart Energy profile this would be a cluster beyond the list that
* normally requires APS encryption.
*
* @param profileId The profile ID Ver.: always
* @param clusterId The cluster ID Ver.: always
* @param incoming Whether this is an incoming or outgoing message. Ver.:
* always
* @param commandId The ZCL command ID being sent/received. Ver.: always
*/
bool emberAfClusterSecurityCustomCallback(EmberAfProfileId profileId, EmberAfClusterId clusterId, bool incoming, uint8_t commandId)
{
// By default, assume APS encryption is not required.
return false;
}

/** @brief Default Response
*
* This function is called by the application framework when a Default Response
Expand Down Expand Up @@ -1369,20 +1350,6 @@ bool emberAfReportAttributesCallback(EmberAfClusterId clusterId, uint8_t * buffe
*/
void emberAfScanErrorCallback(EmberStatus status) {}

/** @brief Security Init
*
* This callback is called by the framework to give the application a chance to
* modify the security settings of the node during network initialization.
* Depending on the context when this callback is called, the pointer to the
* initial security state may be NULL, which means the initial security state
* can no longer be modified as the node is already operating on the network.
*
* @param state Ver.: always
* @param extended Ver.: always
* @param trustCenter Ver.: always
*/
void emberAfSecurityInitCallback(EmberInitialSecurityState * state, EmberExtendedSecurityBitmask * extended, bool trustCenter) {}

/** @brief Key Establishment Cluster Server Command Received
*
* This function is called by the application framework when a client-to-server
Expand Down Expand Up @@ -1578,32 +1545,6 @@ EmberStatus emberAfStartSearchForJoinableNetworkCallback(void)
*/
void emberAfStopMoveCallback(void) {}

/** @brief Trust Center Join
*
* This callback is called from within the application framework's
* implementation of emberTrustCenterJoinHandler or ezspTrustCenterJoinHandler.
* This callback provides the same arguments passed to the
* TrustCenterJoinHandler. For more information about the TrustCenterJoinHandler
* please see documentation included in stack/include/trust-center.h.
*
* @param newNodeId Ver.: always
* @param newNodeEui64 Ver.: always
* @param parentOfNewNode Ver.: always
* @param status Ver.: always
* @param decision Ver.: always
*/
void emberAfTrustCenterJoinCallback(EmberNodeId newNodeId, EmberEUI64 newNodeEui64, EmberNodeId parentOfNewNode,
EmberDeviceUpdate status, EmberJoinDecision decision)
{}

/** @brief Trust Center Keepalive Abort
*
* This callback is called when the device should abort the trust center
* keepalive process.
*
*/
void emberAfTrustCenterKeepaliveAbortCallback(void) {}

/** @brief Trust Center Keepalive Update
*
* This callback is called when the device finishes registration (successfully
Expand Down
Loading

0 comments on commit bf65e42

Please sign in to comment.