ssl_c_test.c
Go to the documentation of this file.
1 #include <openssl/ssl.h>
2 
4 
6 #if defined(__cplusplus)
7 #error "This is testing the behaviour of the C compiler."
8 #error "It's pointless to build it in C++ mode."
9 #endif
10 
11  // In C++, the enums in ssl.h are explicitly typed as ints to allow them to
12  // be predeclared. This function confirms that the C compiler believes them
13  // to be the same size as ints. They may differ in signedness, however.
14  return sizeof(enum ssl_private_key_result_t) == sizeof(int);
15 }
BORINGSSL_enum_c_type_test
int BORINGSSL_enum_c_type_test(void)
Definition: ssl_c_test.c:5
ssl.h


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:20