본문으로 건너뛰기

SSL API

장치 통신에서 SSL통신 제어하는 API입니다.



콜백 함수​

typedef const char* (*GetRootCaFilePath)(uint32_t deviceId);
typedef const char* (*GetServerCaFilePath)(BS2_DEVICE_ID deviceId);
typedef const char* (*GetServerPrivateKeyFilePath)(uint32_t deviceId);
typedef const char* (*GetPassword)(uint32_t deviceId);
typedef void (*OnErrorOccured)(BS2_DEVICE_ID deviceId, int errCode);
  1. GetRootCaFilePath

    Root CA 파일 경로를 얻고자 할 때 호출되는 콜백 함수입니다.

  2. GetServerCaFilePath

    서버 CA 파일 경로를 얻고자 할 때 호출되는 콜백 함수입니다.

  3. GetServerPrivateKeyFilePath

    서버 PrivateKey 파일 경로를 얻고자 할 때 호출되는 콜백 함수입니다.

  4. GetPassword

    Password을 얻고자 할 때 호출되는 콜백 함수입니다.

  5. OnErrorOccured

    에러가 발생했을 때 호출되는 콜백 함수입니다.

이 페이지가 도움이 되었나요?