Skip to content

CDRIVER-2712 remove deprecated MD5 API #1912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ Unreleased (2.0.0)

## Changes


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

## Removals

* The `bson_md5_t` struct and associated API is removed.
* The client side matching feature, `mongoc_matcher_t` and related functions are removed.

### Forwarding headers (`#include <bson.h>` and `#include <mongoc.h>`)

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:

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

### `mongoc_matcher_t`
The client side matching feature, `mongoc_matcher_t` and related functions are removed.

libmongoc 1.30.2
================
Expand Down
6 changes: 6 additions & 0 deletions src/common/src/common-md5-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@

BSON_BEGIN_DECLS

typedef struct {
uint32_t count[2]; /* message length in bits, lsw first */
uint32_t abcd[4]; /* digest buffer */
uint8_t buf[64]; /* accumulate block */
} bson_md5_t;

#define mcommon_md5_init COMMON_NAME (md5_init)
#define mcommon_md5_append COMMON_NAME (md5_append)
#define mcommon_md5_finish COMMON_NAME (md5_finish)
Expand Down
24 changes: 0 additions & 24 deletions src/libbson/src/bson/bson-md5.c

This file was deleted.

88 changes: 0 additions & 88 deletions src/libbson/src/bson/bson-md5.h

This file was deleted.

1 change: 0 additions & 1 deletion src/libbson/src/bson/bson.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <bson/bson-iter.h>
#include <bson/bson-json.h>
#include <bson/bson-keys.h>
#include <bson/bson-md5.h>
#include <bson/bson-memory.h>
#include <bson/bson-oid.h>
#include <bson/bson-reader.h>
Expand Down