Skip to content

Commit d88f042

Browse files
authored
CDRIVER-2712 remove deprecated MD5 API (#1912)
1 parent 64dc7a7 commit d88f042

File tree

5 files changed

+11
-116
lines changed

5 files changed

+11
-116
lines changed

NEWS

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ Unreleased (2.0.0)
33

44
## Changes
55

6-
76
* Passing `batchSize:0` as an option to `mongoc_client_watch`, `mongoc_database_watch`, or `mongoc_collection_watch`
87
now applies `batchSize:0` to the `aggregate` command. Useful to request an immediate cursor. Previously the value
98
was ignored.
109
* `bson_oid_init_sequence` is removed. Use `bson_oid_init` instead.
1110

1211
## Removals
1312

13+
* The `bson_md5_t` struct and associated API is removed.
14+
* The client side matching feature, `mongoc_matcher_t` and related functions are removed.
15+
16+
### Forwarding headers (`#include <bson.h>` and `#include <mongoc.h>`)
17+
1418
The compatibility "forwarding" headers have been removed (previously added in 1.13.0). This means it is no longer valid to include the literal header names `mongoc.h` or `bson.h` directly:
1519

1620
```c
@@ -25,8 +29,6 @@ Instead, the names must be prefixed with the parent directory: `mongoc/mongoc.h`
2529
#include <mongoc/mongoc.h>
2630
```
2731

28-
### `mongoc_matcher_t`
29-
The client side matching feature, `mongoc_matcher_t` and related functions are removed.
3032

3133
libmongoc 1.30.2
3234
================

src/common/src/common-md5-private.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323

2424
BSON_BEGIN_DECLS
2525

26+
typedef struct {
27+
uint32_t count[2]; /* message length in bits, lsw first */
28+
uint32_t abcd[4]; /* digest buffer */
29+
uint8_t buf[64]; /* accumulate block */
30+
} bson_md5_t;
31+
2632
#define mcommon_md5_init COMMON_NAME (md5_init)
2733
#define mcommon_md5_append COMMON_NAME (md5_append)
2834
#define mcommon_md5_finish COMMON_NAME (md5_finish)

src/libbson/src/bson/bson-md5.c

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/libbson/src/bson/bson-md5.h

Lines changed: 0 additions & 88 deletions
This file was deleted.

src/libbson/src/bson/bson.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include <bson/bson-iter.h>
3737
#include <bson/bson-json.h>
3838
#include <bson/bson-keys.h>
39-
#include <bson/bson-md5.h>
4039
#include <bson/bson-memory.h>
4140
#include <bson/bson-oid.h>
4241
#include <bson/bson-reader.h>

0 commit comments

Comments
 (0)