ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/conf_parser.y
(Generate patch)

Comparing ircd-hybrid/trunk/src/conf_parser.y (file contents):
Revision 2247 by michael, Sat Jun 15 22:08:10 2013 UTC vs.
Revision 2248 by michael, Sun Jun 16 11:28:30 2013 UTC

# Line 282 | Line 282 | reset_block_state(void)
282   %token  SQUIT
283   %token  SSL_CERTIFICATE_FILE
284   %token  SSL_CERTIFICATE_FINGERPRINT
285 + %token  SSL_CONNECTION_REQUIRED
286   %token  SSL_DH_PARAM_FILE
287   %token  STATS_E_DISABLED
288   %token  STATS_I_OPER_ONLY
# Line 1087 | Line 1088 | oper_items:     oper_items oper_item | o
1088   oper_item:      oper_name | oper_user | oper_password |
1089                  oper_umodes | oper_class | oper_encrypted |
1090                  oper_rsa_public_key_file | oper_ssl_certificate_fingerprint |
1091 +                oper_ssl_connection_required |
1092                  oper_flags | error ';' ;
1093  
1094   oper_name: NAME '=' QSTRING ';'
# Line 1130 | Line 1132 | oper_ssl_certificate_fingerprint: SSL_CE
1132      strlcpy(block_state.cert.buf, yylval.string, sizeof(block_state.cert.buf));
1133   };
1134  
1135 + oper_ssl_connection_required: SSL_CONNECTION_REQUIRED '=' TBOOL ';'
1136 + {
1137 +  if (conf_parser_ctx.pass != 2)
1138 +    break;
1139 +
1140 +  if (yylval.number)
1141 +    block_state.flags.value |= CONF_FLAGS_SSL;
1142 +  else
1143 +    block_state.flags.value &= ~CONF_FLAGS_SSL;
1144 + };
1145 +
1146   oper_class: CLASS '=' QSTRING ';'
1147   {
1148    if (conf_parser_ctx.pass == 2)

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)