• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/OpenLDAP-499.27/OpenLDAP/servers/slapd/

Lines Matching refs:bc

1287 	void *bc,
1293 slap_keepalive *sk = (slap_keepalive *)bc;
1309 slap_keepalive *sk = (slap_keepalive *)bc;
1378 slap_bindconf *bc = bcp;
1380 if ( bc->sb_uri.bv_len >= val->bv_len )
1382 val->bv_len = bc->sb_uri.bv_len;
1383 AC_MEMCPY( val->bv_val, bc->sb_uri.bv_val, val->bv_len );
1385 bc->sb_uri = *val;
1388 bc->sb_tls_do_init = 1;
1699 bindconf_tls_parse( const char *word, slap_bindconf *bc )
1702 if ( slap_cf_aux_table_parse( word, bc, aux_TLS, "tls config" ) == 0 ) {
1703 bc->sb_tls_do_init = 1;
1711 bindconf_tls_unparse( slap_bindconf *bc, struct berval *bv )
1714 return slap_cf_aux_table_unparse( bc, bv, aux_TLS );
1720 bindconf_parse( const char *word, slap_bindconf *bc )
1724 if ( bindconf_tls_parse( word, bc ) == 0 ) {
1728 return slap_cf_aux_table_parse( word, bc, bindkey, "bind config" );
1732 bindconf_unparse( slap_bindconf *bc, struct berval *bv )
1734 return slap_cf_aux_table_unparse( bc, bv, bindkey );
1737 void bindconf_free( slap_bindconf *bc ) {
1738 if ( !BER_BVISNULL( &bc->sb_uri ) ) {
1739 ch_free( bc->sb_uri.bv_val );
1740 BER_BVZERO( &bc->sb_uri );
1742 if ( !BER_BVISNULL( &bc->sb_binddn ) ) {
1743 ch_free( bc->sb_binddn.bv_val );
1744 BER_BVZERO( &bc->sb_binddn );
1746 if ( !BER_BVISNULL( &bc->sb_cred ) ) {
1747 ch_free( bc->sb_cred.bv_val );
1748 BER_BVZERO( &bc->sb_cred );
1750 if ( !BER_BVISNULL( &bc->sb_saslmech ) ) {
1751 ch_free( bc->sb_saslmech.bv_val );
1752 BER_BVZERO( &bc->sb_saslmech );
1754 if ( bc->sb_secprops ) {
1755 ch_free( bc->sb_secprops );
1756 bc->sb_secprops = NULL;
1758 if ( !BER_BVISNULL( &bc->sb_realm ) ) {
1759 ch_free( bc->sb_realm.bv_val );
1760 BER_BVZERO( &bc->sb_realm );
1762 if ( !BER_BVISNULL( &bc->sb_authcId ) ) {
1763 ch_free( bc->sb_authcId.bv_val );
1764 BER_BVZERO( &bc->sb_authcId );
1766 if ( !BER_BVISNULL( &bc->sb_authzId ) ) {
1767 ch_free( bc->sb_authzId.bv_val );
1768 BER_BVZERO( &bc->sb_authzId );
1772 if ( bc->sb_tls_identity ) {
1773 ch_free( bc->sb_tls_identity );
1774 bc->sb_tls_identity = NULL;
1776 if ( bc->sb_tls_trusted_certs ) {
1777 ch_free( bc->sb_tls_trusted_certs );
1778 bc->sb_tls_trusted_certs = NULL;
1781 if ( bc->sb_tls_cert ) {
1782 ch_free( bc->sb_tls_cert );
1783 bc->sb_tls_cert = NULL;
1785 if ( bc->sb_tls_key ) {
1786 ch_free( bc->sb_tls_key );
1787 bc->sb_tls_key = NULL;
1789 if ( bc->sb_tls_cacert ) {
1790 ch_free( bc->sb_tls_cacert );
1791 bc->sb_tls_cacert = NULL;
1793 if ( bc->sb_tls_cacertdir ) {
1794 ch_free( bc->sb_tls_cacertdir );
1795 bc->sb_tls_cacertdir = NULL;
1798 if ( bc->sb_tls_reqcert ) {
1799 ch_free( bc->sb_tls_reqcert );
1800 bc->sb_tls_reqcert = NULL;
1802 if ( bc->sb_tls_cipher_suite ) {
1803 ch_free( bc->sb_tls_cipher_suite );
1804 bc->sb_tls_cipher_suite = NULL;
1806 if ( bc->sb_tls_protocol_min ) {
1807 ch_free( bc->sb_tls_protocol_min );
1808 bc->sb_tls_protocol_min = NULL;
1811 if ( bc->sb_tls_crlcheck ) {
1812 ch_free( bc->sb_tls_crlcheck );
1813 bc->sb_tls_crlcheck = NULL;
1816 if ( bc->sb_tls_ctx ) {
1817 ldap_pvt_tls_ctx_free( bc->sb_tls_ctx );
1818 bc->sb_tls_ctx = NULL;
1824 bindconf_tls_defaults( slap_bindconf *bc )
1827 if ( bc->sb_tls_do_init ) {
1829 if ( !bc->sb_tls_identity )
1831 &bc->sb_tls_identity );
1832 if ( !bc->sb_tls_trusted_certs )
1834 &bc->sb_tls_trusted_certs );
1836 if ( !bc->sb_tls_cacert )
1838 &bc->sb_tls_cacert );
1839 if ( !bc->sb_tls_cacertdir )
1841 &bc->sb_tls_cacertdir );
1842 if ( !bc->sb_tls_cert )
1844 &bc->sb_tls_cert );
1845 if ( !bc->sb_tls_key )
1847 &bc->sb_tls_key );
1849 if ( !bc->sb_tls_cipher_suite )
1851 &bc->sb_tls_cipher_suite );
1852 if ( !bc->sb_tls_reqcert )
1853 bc->sb_tls_reqcert = ch_strdup("demand");
1855 if ( !bc->sb_tls_crlcheck )
1857 &bc->sb_tls_crlcheck );
1883 int bindconf_tls_set( slap_bindconf *bc, LDAP *ld )
1886 char *ptr = (char *)bc, **word;
1888 bc->sb_tls_do_init = 0;
1903 if ( bc->sb_tls_reqcert ) {
1905 bc->sb_tls_reqcert );
1909 bc->sb_tls_reqcert, 0, 0 );
1914 if ( bc->sb_tls_protocol_min ) {
1916 bc->sb_tls_protocol_min );
1920 bc->sb_tls_protocol_min, 0, 0 );
1926 if ( bc->sb_tls_crlcheck ) {
1928 bc->sb_tls_crlcheck );
1932 bc->sb_tls_crlcheck, 0, 0 );
1941 if ( bc->sb_tls_ctx ) {
1942 ldap_pvt_tls_ctx_free( bc->sb_tls_ctx );
1943 bc->sb_tls_ctx = NULL;
1949 ldap_get_option( ld, LDAP_OPT_X_TLS_CTX, &bc->sb_tls_ctx );