File tree Expand file tree Collapse file tree 4 files changed +27
-6
lines changed Expand file tree Collapse file tree 4 files changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,12 @@ set (HEADERS
129129
130130if (OPENSSL_FOUND)
131131 set (HEADERS ${HEADERS}
132+ ${SOURCE_DIR} /src/mongoc/mongoc-rand.h
132133 ${SOURCE_DIR} /src/mongoc/mongoc-stream-tls.h
133134 ${SOURCE_DIR} /src/mongoc/mongoc-ssl.h)
134135 set (SOURCES ${SOURCES}
136+ ${SOURCE_DIR} /src/mongoc/mongoc-rand.c
137+ ${SOURCE_DIR} /src/mongoc/mongoc-scram.c
135138 ${SOURCE_DIR} /src/mongoc/mongoc-stream-tls.c
136139 ${SOURCE_DIR} /src/mongoc/mongoc-ssl.c
137140 )
@@ -250,6 +253,7 @@ add_test(NAME test-libmongoc COMMAND test-libmongoc -f -p)
250253
251254mongoc_add_example(example-gridfs TRUE ${SOURCE_DIR} /examples/example-gridfs.c)
252255mongoc_add_example(example-client TRUE ${SOURCE_DIR} /examples/example-client.c)
256+ mongoc_add_example(example-scram TRUE ${SOURCE_DIR} /examples/example-scram.c)
253257mongoc_add_example(mongoc-dump TRUE ${SOURCE_DIR} /examples/mongoc-dump.c)
254258mongoc_add_example(mongoc-ping TRUE ${SOURCE_DIR} /examples/mongoc-ping.c)
255259mongoc_add_example(mongoc-rpc-validate FALSE ${SOURCE_DIR} /examples/mongoc-rpc-validate.c)
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ mongoc_client_get_collection
2323mongoc_client_get_database
2424mongoc_client_get_database_names
2525mongoc_client_get_gridfs
26+ mongoc_client_get_max_bson_size
27+ mongoc_client_get_max_message_size
2628mongoc_client_get_read_prefs
2729mongoc_client_get_server_status
2830mongoc_client_get_uri
@@ -129,13 +131,21 @@ mongoc_gridfs_find_one_by_filename
129131mongoc_gridfs_get_chunks
130132mongoc_gridfs_get_files
131133mongoc_gridfs_remove_by_filename
134+ mongoc_index_opt_geo_get_default
135+ mongoc_index_opt_geo_init
132136mongoc_index_opt_get_default
133137mongoc_index_opt_init
134138mongoc_init
135139mongoc_log
136140mongoc_log_default_handler
137141mongoc_log_level_str
138142mongoc_log_set_handler
143+ mongoc_matcher_destroy
144+ mongoc_matcher_match
145+ mongoc_matcher_new
146+ mongoc_rand_add
147+ mongoc_rand_seed
148+ mongoc_rand_status
139149mongoc_read_prefs_add_tag
140150mongoc_read_prefs_copy
141151mongoc_read_prefs_destroy
@@ -145,7 +155,6 @@ mongoc_read_prefs_is_valid
145155mongoc_read_prefs_new
146156mongoc_read_prefs_set_mode
147157mongoc_read_prefs_set_tags
148- mongoc_ssl_opt_get_default
149158mongoc_socket_accept
150159mongoc_socket_bind
151160mongoc_socket_close
@@ -160,6 +169,7 @@ mongoc_socket_recv
160169mongoc_socket_send
161170mongoc_socket_sendv
162171mongoc_socket_setsockopt
172+ mongoc_ssl_opt_get_default
163173mongoc_stream_buffered_new
164174mongoc_stream_close
165175mongoc_stream_destroy
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ mongoc_client_get_collection
2323mongoc_client_get_database
2424mongoc_client_get_database_names
2525mongoc_client_get_gridfs
26- mongoc_client_get_max_message_size
2726mongoc_client_get_max_bson_size
27+ mongoc_client_get_max_message_size
2828mongoc_client_get_read_prefs
2929mongoc_client_get_server_status
3030mongoc_client_get_uri
@@ -138,6 +138,12 @@ mongoc_log
138138mongoc_log_default_handler
139139mongoc_log_level_str
140140mongoc_log_set_handler
141+ mongoc_matcher_destroy
142+ mongoc_matcher_match
143+ mongoc_matcher_new
144+ mongoc_rand_add
145+ mongoc_rand_seed
146+ mongoc_rand_status
141147mongoc_read_prefs_add_tag
142148mongoc_read_prefs_copy
143149mongoc_read_prefs_destroy
@@ -180,8 +186,10 @@ mongoc_uri_copy
180186mongoc_uri_destroy
181187mongoc_uri_get_auth_mechanism
182188mongoc_uri_get_auth_source
189+ mongoc_uri_get_credentials
183190mongoc_uri_get_database
184191mongoc_uri_get_hosts
192+ mongoc_uri_get_mechanism_properties
185193mongoc_uri_get_options
186194mongoc_uri_get_password
187195mongoc_uri_get_read_prefs
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17+ #include "mongoc-rand.h"
18+ #include "mongoc-rand-private.h"
1719
18- #include "mongoc-config .h"
20+ #include "mongoc.h"
1921
2022#include <openssl/rand.h>
2123
22- #include "mongoc-rand.h"
23- #include "mongoc-rand-private.h"
24-
2524int _mongoc_rand_bytes (uint8_t * buf , int num ) {
2625 return RAND_bytes (buf , num );
2726}
You can’t perform that action at this time.
0 commit comments