Skip to content

X509v3_addr_get_safi

NAME

X509v3_addr_get_safi - X509 SAFI finder

SYNOPSIS

#include <openssl/x509v3.h>

unsigned int X509v3_addr_get_safi(const IPAddressFamily *f);

DESCRIPTION

X509v3_addr_get_safi() retrieves the SAFI from the IPAddressFamily data structure.

RETURN VALUES

X509v3_addr_get_safi() returns the SAFI if it can find it. In the case that IPAddressFamily does not have it, it returns a value of 0.

HISTORY

X509v3_addr_get_safi() was added in OpenSSL 4.2.0.

Copyright 2015-2026 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.