ssl_cert.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. #ifndef _SSL_CERT_H_
  14. #define _SSL_CERT_H_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #include "ssl_types.h"
  19. /**
  20. * @brief create a certification object include private key object according to input certification
  21. *
  22. * @param ic - input certification point
  23. *
  24. * @return certification object point
  25. */
  26. CERT *__ssl_cert_new(CERT *ic);
  27. /**
  28. * @brief create a certification object include private key object
  29. *
  30. * @param none
  31. *
  32. * @return certification object point
  33. */
  34. CERT* ssl_cert_new(void);
  35. /**
  36. * @brief free a certification object
  37. *
  38. * @param cert - certification object point
  39. *
  40. * @return none
  41. */
  42. void ssl_cert_free(CERT *cert);
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif