Commit c01f7958 authored by Christian Hergert's avatar Christian Hergert
Browse files

libbson: abstract oid validation in bson_oid_is_valid().

This is for validating 24-character strings. All 12-character strings
are valid since they are simply bytes. This function does not validate
that. When creating your bson_oid_t, simply use the proper init function
based on your use.

  bson_oid_init_from_string(&oid, ...) // 24-byte string
  bson_oid_init_from_data(&oid, ...)   // 12-byte buffer
parent 5dd7b853
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment