diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-06-12 20:26:27 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-06-29 08:32:58 +0200 |
| commit | dce27129b74f906e0d1c086858f360228d5cbc83 (patch) | |
| tree | e9ccf1d96bd1059c54c1930271a957a13d9cf5ca /src/irmd/oap/auth.h | |
| parent | 977bcac2d56a8793ed93b4aac7016ef36b51a07f (diff) | |
| download | ouroboros-dce27129b74f906e0d1c086858f360228d5cbc83.tar.gz ouroboros-dce27129b74f906e0d1c086858f360228d5cbc83.zip | |
irmd: Reject OAP peer crt with unusable CN
Added checks for CN > NAME_SIZE.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/oap/auth.h')
| -rw-r--r-- | src/irmd/oap/auth.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/oap/auth.h b/src/irmd/oap/auth.h index be8d2cae..4a350120 100644 --- a/src/irmd/oap/auth.h +++ b/src/irmd/oap/auth.h @@ -29,7 +29,7 @@ int oap_check_hdr(const struct oap_hdr * hdr); -/* name is updated with the peer's certificate name if available */ +/* name is set to the peer crt CN, "" if no crt was presented */ int oap_auth_peer(char * name, const struct sec_config * cfg, const struct oap_hdr * local_hdr, |
