VirtualBox

Changeset 59625 in vbox for trunk/include/iprt/crypto/pem.h


Ignore:
Timestamp:
Feb 10, 2016 8:55:22 AM (9 years ago)
Author:
vboxsync
Message:

IPRT: Added RTCrPemFindFirstSectionInContent and exposed certificate PEM markers (g_aRTCrX509CertificateMarkers).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/crypto/pem.h

    r57577 r59625  
    44
    55/*
    6  * Copyright (C) 2006-2015 Oracle Corporation
     6 * Copyright (C) 2006-2016 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2424 */
    2525
    26 #ifndef ___iprt_crypto_spc_h
    27 #define ___iprt_crypto_spc_h
     26#ifndef ___iprt_crypto_pem_h
     27#define ___iprt_crypto_pem_h
    2828
    29 #include <iprt/asn1.h>
    30 #include <iprt/crypto/x509.h>
    31 #include <iprt/crypto/pkcs7.h>
    32 #include <iprt/md5.h>
    33 #include <iprt/sha.h>
     29#include <iprt/types.h>
    3430
    3531
     
    156152/** @} */
    157153
     154/**
     155 * Finds the beginning of first PEM section using the specified markers.
     156 *
     157 * This will not look any further than the first section.  Nor will it check for
     158 * binaries.
     159 *
     160 * @returns Pointer to the "-----BEGIN XXXX" sequence on success.
     161 *          NULL if not found.
     162 * @param   pvContent       The content bytes to parse.
     163 * @param   cbContent       The number of content bytes.
     164 * @param   paMarkers       Array of one or more section markers to look for.
     165 * @param   cMarkers        Number of markers in the array.
     166 */
     167RTDECL(const char *) RTCrPemFindFirstSectionInContent(void const *pvContent, size_t cbContent,
     168                                                      PCRTCRPEMMARKER paMarkers, size_t cMarkers);
     169
    158170/** @} */
    159171
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette