Boundary conditions for general ordinary differential operators and their adjoints