문서의 이전 판입니다!


SSL API > BS2_SetSSLHandler


SSL통신을 설정합니다

함수

#include "BS_API.h"
 
int BS2_SetSSLHandler(void* context, PreferMethod ptrPreferMethod, GetRootCaFilePath ptrGetRootCaFilePath, GetServerCaFilePath ptrGetServerCaFilePath, GetServerPrivateKeyFilePath ptrGetServerPrivateKeyFilePath, GetPassword ptrGetPassword, OnErrorOccured ptrOnErrorOccured);

파라미터

  • [In] context : Context
  • [In] ptrPreferMethod : SSL MethodMask 얻고자 할 때 호출되는 콜백 함수
  • [In] ptrGetRootCaFilePath : Root CA 파일 경로를 얻고자 할 때 호출되는 콜백 함수
  • [In] ptrGetServerCaFilePath : 서버 CA 파일 경로를 얻고자 할 때 호출되는 콜백 함수
  • [In] ptrGetServerPrivateKeyFilePath : 서버 PrivateKey 파일 경로을 얻고자 할 때 호출되는 콜백 함수
  • [In] ptrGetPassword : Password을 얻고자 할 때 호출되는 콜백 함수
  • [In] ptrOnErrorOccured : 에러가 발생했을 때 호출되는 콜백 함수

반환값

성공적으로 수행될 경우 BS_SDK_SUCCESS를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다.