SetSignatureBypassStrictMode controls whether bypass mode uses strict protobuf-tree validation.
(strict bool)
| 323 | |
| 324 | // SetSignatureBypassStrictMode controls whether bypass mode uses strict protobuf-tree validation. |
| 325 | func SetSignatureBypassStrictMode(strict bool) { |
| 326 | previous := signatureBypassStrictMode.Swap(strict) |
| 327 | if previous == strict { |
| 328 | return |
| 329 | } |
| 330 | if strict { |
| 331 | log.Debug("antigravity bypass signature validation: strict mode (protobuf tree)") |
| 332 | } else { |
| 333 | log.Debug("antigravity bypass signature validation: basic mode (R/E + 0x12)") |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | // SignatureBypassStrictMode returns whether bypass mode uses strict protobuf-tree validation. |
| 338 | func SignatureBypassStrictMode() bool { |