Cloud Client
[platform/upstream/iotivity.git] / resource / csdk / connectivity / api / casecurityinterface.h
index 277c4ff..bae8653 100644 (file)
@@ -95,6 +95,14 @@ CAResult_t CARegisterDTLSCredentialsHandler(CAGetDTLSPskCredentialsHandler GetDT
 
 #ifdef __WITH_TLS__
 /**
+ * This internal callback is used by CA layer to
+ * retrieve all credential types from SRM
+ *
+ * @param[out]  list of enabled credential types for CA handshake
+ *
+ */
+typedef void (*CAgetCredentialTypesHandler)(bool * list);
+/**
  * Binary structure containing PKIX related info
  * own certificate chain, public key, CA's and CRL's
  */
@@ -111,6 +119,12 @@ typedef struct
 } PkiInfo_t;
 
 /**
+ * Register callback to receive credential types.
+ * @param[in] credTypesCallback callback to get cerdential types
+ * @return ::CA_STATUS_OK
+ */
+CAResult_t CAregisterGetCredentialTypesCallback(CAgetCredentialTypesHandler credTypesCallback);
+/**
  * Register callback to receive the result of TLS handshake.
  * @param[in] tlsHandshakeCallback callback for get tls handshake result
  * @return ::CA_STATUS_OK
@@ -134,7 +148,6 @@ CAResult_t CAregisterTlsCredentialsHandler(CAGetDTLSPskCredentialsHandler getTls
 typedef void (*CAgetPkixInfoHandler)(PkiInfo_t * inf);
 
 //TODO
-void GetPkixInfo(PkiInfo_t * inf);
 CAResult_t CAregisterPkixInfoHandler(CAgetPkixInfoHandler getPkixInfoHandler);
 #endif //__WITH_TLS__