| 6 | // |
| 7 | // https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 |
| 15 | #include <openssl/x509.h> |
| 16 |
| 17 | #include <assert.h> |
| 18 |
| 19 | #include <openssl/conf.h> |
| 20 |
| 21 |
| 22 | X509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf, |
| 23 | const X509V3_CTX *ctx, int ext_nid, |
| 24 | const char *value) { |
| 25 | assert(conf == NULL); |
| 26 | return X509V3_EXT_nconf_nid(NULL, ctx, ext_nid, value); |
| 27 | } |
| 28 |