Subversion Repositories oidplus

Rev

Rev 1169 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. /*
  4.  * OIDplus 2.0
  5.  * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft
  6.  *
  7.  * Licensed under the Apache License, Version 2.0 (the "License");
  8.  * you may not use this file except in compliance with the License.
  9.  * You may obtain a copy of the License at
  10.  *
  11.  *     http://www.apache.org/licenses/LICENSE-2.0
  12.  *
  13.  * Unless required by applicable law or agreed to in writing, software
  14.  * distributed under the License is distributed on an "AS IS" BASIS,
  15.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16.  * See the License for the specific language governing permissions and
  17.  * limitations under the License.
  18.  */
  19.  
  20. use ViaThinkSoft\OIDplus\OIDplus;
  21.  
  22. // Note: You can override these values in your userdata/baseconfig/config.inc.php file
  23. //       Do NOT edit this file, because your changes would get overwritten
  24. //       by program updates!
  25.  
  26. // -----------------------------------------------------------------------------
  27.  
  28. /**
  29.   * LIMITS_MAX_ID_LENGTH
  30.   *
  31.   * Example:
  32.   *     OID 2.999.123.456 has a length of 13 characters in dot notation.
  33.   *             OIDplus adds the prefix "oid:" in front of every OID,
  34.   *             so the overal length of the ID would be 17.
  35.   *
  36.   * Default value:
  37.   *     255 digits (OIDs 251 digits)
  38.   *
  39.   * Which value is realistic?
  40.   *     In the oid-info.com database (April 2020), the OID with the greatest size is 65 characters (dot notation)
  41.   *
  42.   * Maximum value:
  43.   *     OIDs may only have a size of max 251 characters in dot notation.
  44.   *     Reason: The field defintion of *_objects.oid is defined as varchar(255),
  45.   *             and the OID will have the prefix 'oid:' (4 bytes).
  46.   *     You can increase the limit by changing the field definition in the database.
  47.   **/
  48. OIDplus::baseConfig()->setValue('LIMITS_MAX_ID_LENGTH', 255);
  49.  
  50. // -----------------------------------------------------------------------------
  51.  
  52. /**
  53.   * LIMITS_MAX_OID_ASN1_ID_LEN
  54.   *
  55.   * Default value:
  56.   *     255 characters
  57.   *
  58.   * Maximum value:
  59.   *     255, as defined in the database fields *_asn1id.name
  60.   *     You can change the database field definition if you really need more.
  61.   **/
  62. OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_ASN1_ID_LEN', 255);
  63.  
  64. // -----------------------------------------------------------------------------
  65.  
  66. /**
  67.   * LIMITS_MAX_OID_UNICODE_LABEL_LEN
  68.   *
  69.   * Default value:
  70.   *     255 bytes (UTF-8 encoded!)
  71.   *
  72.   * Maximum value:
  73.   *     255, as defined in the database fields *_iri.name
  74.   *     You can change the database field definition if you really need more.
  75.   **/
  76. OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_UNICODE_LABEL_LEN', 255);
  77.  
  78. // -----------------------------------------------------------------------------
  79.