Subversion Repositories oidconverter

Rev

Rev 9 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9 Rev 11
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
/*
3
/*
4
 * OidDerConverter.class.php, Version 1.1; Based on version 1.3+viathinksoft11 of oid.c
4
 * OidDerConverter.class.php, Version 1.1.1; Based on version 1.3+viathinksoft11 of oid.c
5
 * Copyright 2014-2022 Daniel Marschall, ViaThinkSoft
5
 * Copyright 2014-2022 Daniel Marschall, ViaThinkSoft
6
 *
6
 *
7
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * Licensed under the Apache License, Version 2.0 (the "License");
8
 * you may not use this file except in compliance with 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
9
 * You may obtain a copy of the License at
Line 176... Line 176...
176
                                        $fOK = true;
176
                                        $fOK = true;
177
                                        $part++;
177
                                        $part++;
178
                                        if ($isRelative) $part++; // Goto step 3!
178
                                        if ($isRelative) $part++; // Goto step 3!
179
                                }
179
                                }
180
                        } else if ($part == 2) { // First two arcs
180
                        } else if ($part == 2) { // First two arcs
181
                                $first = $pb / 40;
181
                                $first = floor($pb / 40);
182
                                $second = $pb % 40;
182
                                $second = $pb % 40;
183
                                if ($first > 2) {
183
                                if ($first > 2) {
184
                                        $first = 2;
184
                                        $first = 2;
185
                                        $output_oid[] = $first;
185
                                        $output_oid[] = $first;
186
                                        $arcBeginning = true;
186
                                        $arcBeginning = true;